From 7a49ece490f0420f6aa30e0d45bfdd04a37f546e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 17 Jul 2025 15:54:27 -0500 Subject: Bugfix: remove obsolete variable name. --- gn_auth/auth/authorisation/users/views.py | 4 +++- 1 file changed, 3 insertions(+), 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 fe0662f..91e459d 100644 --- a/gn_auth/auth/authorisation/users/views.py +++ b/gn_auth/auth/authorisation/users/views.py @@ -701,7 +701,9 @@ def delete_users(): "deleted": _deleted_rows, "message": ( f"Successfully deleted {_deleted_rows} users." + - (" Some users could not be deleted." if _diff > 0 else "")) + (" Some users could not be deleted." + if len(_user_ids) - _deleted_rows > 0 + else "")) }) _not_deleted = __fetch_non_deletable_users__(cursor, _non_deletable) -- cgit v1.2.3