aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-08 04:59:33 -0500
committerFrederick Muriuki Muriithi2025-07-08 04:59:33 -0500
commitfb1e138b3efbd22eca59f2d8f836c1e61121c964 (patch)
treedb3c5e6b8507d6e13b1a632fe005a5adcc2d221e
parent26671875ec631c08049631263e37df1f61e95953 (diff)
downloadgn-auth-fb1e138b3efbd22eca59f2d8f836c1e61121c964.tar.gz
Provide zero counts for all and filtered totals.HEADmain
-rw-r--r--gn_auth/auth/authorisation/resources/groups/views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/resources/groups/views.py b/gn_auth/auth/authorisation/resources/groups/views.py
index 1e95f09..28f64e2 100644
--- a/gn_auth/auth/authorisation/resources/groups/views.py
+++ b/gn_auth/auth/authorisation/resources/groups/views.py
@@ -54,7 +54,9 @@ def list_groups():
).maybe(
{
"groups": [],
- "message": "No groups found!"
+ "message": "No groups found!",
+ "total-groups": 0,
+ "total-filtered": 0
},
lambda _grpdata: _grpdata))