From f608ee7b28e477497728ec5674a86a0a4350b6b5 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 13 Nov 2023 14:58:41 +0300 Subject: Bug: Fix typo in query --- gn_auth/auth/authorisation/roles/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn_auth/auth/authorisation/roles') diff --git a/gn_auth/auth/authorisation/roles/models.py b/gn_auth/auth/authorisation/roles/models.py index f6d6c41..a3a9d5b 100644 --- a/gn_auth/auth/authorisation/roles/models.py +++ b/gn_auth/auth/authorisation/roles/models.py @@ -156,7 +156,7 @@ def __assign_public_view_role__(cursor: db.DbCursor, user: User): cursor.execute("SELECT role_id FROM roles WHERE role_name='public-view'") role_id = cursor.fetchone()["role_id"] cursor.executemany( - "INSERT INTO user_roles(user_id, role_id, resource_id " + "INSERT INTO user_roles(user_id, role_id, resource_id) " "VALUES(:user_id, :role_id, :resource_id)", tuple({ "user_id": str(user.user_id), -- cgit v1.2.3