diff options
author | Frederick Muriuki Muriithi | 2025-07-17 15:53:10 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-07-17 15:53:10 -0500 |
commit | 1aa1f39a0a71e247b707e0c476dce16128e1728e (patch) | |
tree | efab74fa8e091d68502d8be585d28a3a862709ad | |
parent | af09d3c5a6c070708b66c577821d3af2a3b97ea7 (diff) | |
download | gn-auth-1aa1f39a0a71e247b707e0c476dce16128e1728e.tar.gz |
Bugfix: Retrieve the reasons, not the entire dict.
-rw-r--r-- | gn_auth/auth/authorisation/users/views.py | 2 |
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 394b92c..bff48fe 100644 --- a/gn_auth/auth/authorisation/users/views.py +++ b/gn_auth/auth/authorisation/users/views.py @@ -595,7 +595,7 @@ def __fetch_non_deletable_users__(cursor, ids_and_reasons): _user_ids) return tuple({ "user": dict(row), - "reasons": _reasons_by_id[row["user_id"]] + "reasons": _reasons_by_id[row["user_id"]]["reasons"] } for row in cursor.fetchall()) |