From 94d211e354e7be675857e3aacd1734f3164a371e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 29 Jul 2025 14:36:55 -0500 Subject: Fix issues caught by code-linter. --- gn_auth/auth/authorisation/resources/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gn_auth/auth/authorisation/resources/models.py') 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),)) -- cgit 1.4.1