diff options
author | Frederick Muriuki Muriithi | 2025-07-17 15:54:27 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-07-17 15:54:27 -0500 |
commit | 7a49ece490f0420f6aa30e0d45bfdd04a37f546e (patch) | |
tree | 8c9d15e42b590e6498e92f2062b61f57a244d774 /gn_auth | |
parent | d47a9c7cf0b311cd19be3e5a7b5729e92e8f83b0 (diff) | |
download | gn-auth-7a49ece490f0420f6aa30e0d45bfdd04a37f546e.tar.gz |
Diffstat (limited to 'gn_auth')
-rw-r--r-- | gn_auth/auth/authorisation/users/views.py | 4 |
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) |