aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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})",