diff options
| author | Frederick Muriuki Muriithi | 2026-04-23 12:28:42 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-04-23 12:28:42 -0500 |
| commit | a78ddfa75fdf736355e9c8143d5ad9b70cd07dd4 (patch) | |
| tree | 0659e7f69017e216f6ad308ecd92e785beaed7d3 /gn_auth/auth | |
| parent | ca20ffd7758e5b29630cacbc15e4ad26a65eeb88 (diff) | |
| download | gn-auth-a78ddfa75fdf736355e9c8143d5ad9b70cd07dd4.tar.gz | |
Fix minor linting bugs.
Diffstat (limited to 'gn_auth/auth')
| -rw-r--r-- | gn_auth/auth/authorisation/resources/checks.py | 1 | ||||
| -rw-r--r-- | gn_auth/auth/authorisation/resources/models.py | 1 | ||||
| -rw-r--r-- | gn_auth/auth/authorisation/resources/views.py | 3 |
3 files changed, 1 insertions, 4 deletions
diff --git a/gn_auth/auth/authorisation/resources/checks.py b/gn_auth/auth/authorisation/resources/checks.py index bc9e4da..004c780 100644 --- a/gn_auth/auth/authorisation/resources/checks.py +++ b/gn_auth/auth/authorisation/resources/checks.py @@ -199,4 +199,3 @@ def can_edit( user_id, system_resource(conn).resource_id, "(OR system:system-wide:data:edit system:resource:edit)")) - diff --git a/gn_auth/auth/authorisation/resources/models.py b/gn_auth/auth/authorisation/resources/models.py index 9ef62fe..9e30386 100644 --- a/gn_auth/auth/authorisation/resources/models.py +++ b/gn_auth/auth/authorisation/resources/models.py @@ -16,7 +16,6 @@ from gn_auth.auth.authorisation.privileges import Privilege from gn_auth.auth.authorisation.checks import authorised_p from gn_auth.auth.errors import NotFoundError, AuthorisationError -from .system.models import system_resource from .common import assign_resource_owner_role from .checks import can_edit, authorised_for_spec from .base import Resource, ResourceCategory, resource_from_dbrow diff --git a/gn_auth/auth/authorisation/resources/views.py b/gn_auth/auth/authorisation/resources/views.py index bdbd356..6186cde 100644 --- a/gn_auth/auth/authorisation/resources/views.py +++ b/gn_auth/auth/authorisation/resources/views.py @@ -101,8 +101,7 @@ def create_resource() -> Response: "resources.resource_name"): raise InconsistencyError( "You cannot have duplicate resource names.") from sql3ie - logger.debug( - f"{type(sql3ie)=}: {sql3ie=}") + logger.debug("type(sql3ie)=%s: sql3ie=%s", type(sql3ie), sql3ie) raise |
