aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-17 15:53:51 -0500
committerFrederick Muriuki Muriithi2025-07-17 15:53:51 -0500
commitd47a9c7cf0b311cd19be3e5a7b5729e92e8f83b0 (patch)
tree7ec6b073e4ae2ddcdb2a5e9d80ec1f8f4de67eaa
parent1aa1f39a0a71e247b707e0c476dce16128e1728e (diff)
downloadgn-auth-d47a9c7cf0b311cd19be3e5a7b5729e92e8f83b0.tar.gz
Bugfix: Get user IDs from objects.
-rw-r--r--gn_auth/auth/authorisation/users/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/users/views.py b/gn_auth/auth/authorisation/users/views.py
index bff48fe..fe0662f 100644
--- a/gn_auth/auth/authorisation/users/views.py
+++ b/gn_auth/auth/authorisation/users/views.py
@@ -688,7 +688,7 @@ def delete_users():
cursor, _non_deletable)
_delete = tuple(# rebuild with those that failed.
_user_id for _user_id in _delete if _user_id not in
- tuple(_not_deleted.keys()))
+ tuple(row["user"]["user_id"] for row in _not_deleted))
_paramstr = ", ".join(["?"] * len(_delete))
cursor.execute(
f"DELETE FROM users WHERE user_id IN ({_paramstr})",