From d47a9c7cf0b311cd19be3e5a7b5729e92e8f83b0 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 17 Jul 2025 15:53:51 -0500 Subject: Bugfix: Get user IDs from objects. --- gn_auth/auth/authorisation/users/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn_auth/auth/authorisation/users/views.py') 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})", -- cgit v1.2.3