aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authorisation/users/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn_auth/auth/authorisation/users/views.py')
-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)