aboutsummaryrefslogtreecommitdiff
path: root/gn_auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-11-13 14:58:41 +0300
committerFrederick Muriuki Muriithi2023-11-13 14:58:41 +0300
commitf608ee7b28e477497728ec5674a86a0a4350b6b5 (patch)
tree017219a13fd859ca829776908f02332efb979a7b /gn_auth
parent7d05bb6dac6a57cdeabb31800e248394c12f6cee (diff)
downloadgn-auth-f608ee7b28e477497728ec5674a86a0a4350b6b5.tar.gz
Bug: Fix typo in query
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/auth/authorisation/roles/models.py2
1 files changed, 1 insertions, 1 deletions
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),