diff options
author | Frederick Muriuki Muriithi | 2025-07-29 14:36:55 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-07-29 14:36:55 -0500 |
commit | 94d211e354e7be675857e3aacd1734f3164a371e (patch) | |
tree | 9b1e4a34691c6766067ba5f65bc40e0578739a8a /gn_auth/auth/authorisation/resources/models.py | |
parent | 2402dcf7577961c634bc36181b26803dff785c11 (diff) | |
download | gn-auth-94d211e354e7be675857e3aacd1734f3164a371e.tar.gz |
Fix issues caught by code-linter.
Diffstat (limited to 'gn_auth/auth/authorisation/resources/models.py')
-rw-r--r-- | gn_auth/auth/authorisation/resources/models.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gn_auth/auth/authorisation/resources/models.py b/gn_auth/auth/authorisation/resources/models.py index 16f0359..0de286b 100644 --- a/gn_auth/auth/authorisation/resources/models.py +++ b/gn_auth/auth/authorisation/resources/models.py @@ -4,8 +4,6 @@ from uuid import UUID, uuid4 from functools import reduce, partial from typing import Dict, Sequence, Optional -import sqlite3 - from gn_auth.auth.db import sqlite3 as db from gn_auth.auth.authentication.users import User from gn_auth.auth.db.sqlite3 import with_db_connection @@ -78,6 +76,7 @@ def create_resource(# pylint: disable=[too-many-arguments, too-many-positional-a def delete_resource(conn: db.DbConnection, resource_id: UUID): + """Delete a resource.""" with db.cursor(conn) as cursor: cursor.execute("DELETE FROM user_roles WHERE resource_id=?", (str(resource_id),)) |