aboutsummaryrefslogtreecommitdiff
path: root/gn_auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-17 15:54:27 -0500
committerFrederick Muriuki Muriithi2025-07-17 15:54:27 -0500
commit7a49ece490f0420f6aa30e0d45bfdd04a37f546e (patch)
tree8c9d15e42b590e6498e92f2062b61f57a244d774 /gn_auth
parentd47a9c7cf0b311cd19be3e5a7b5729e92e8f83b0 (diff)
downloadgn-auth-7a49ece490f0420f6aa30e0d45bfdd04a37f546e.tar.gz
Bugfix: remove obsolete variable name.HEADmain
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/auth/authorisation/users/views.py4
1 files changed, 3 insertions, 1 deletions
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)