From 1aa1f39a0a71e247b707e0c476dce16128e1728e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 17 Jul 2025 15:53:10 -0500 Subject: Bugfix: Retrieve the reasons, not the entire dict. --- 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 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()) -- cgit v1.2.3