diff options
author | Frederick Muriuki Muriithi | 2025-07-03 12:17:56 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-07-03 12:17:56 -0500 |
commit | 09e27e96092f9a2e4f731709b8e8fdcd9835069a (patch) | |
tree | b8dd4cc569348e59ae1e54bc82c22564ca8cc115 /gn_auth/auth/authorisation/users/views.py | |
parent | 3f1842894dc9f984ec2186f64c7d6f7bba27205f (diff) | |
download | gn-auth-09e27e96092f9a2e4f731709b8e8fdcd9835069a.tar.gz |
Fix minor issues caught by mypy.
Diffstat (limited to 'gn_auth/auth/authorisation/users/views.py')
-rw-r--r-- | gn_auth/auth/authorisation/users/views.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/users/views.py b/gn_auth/auth/authorisation/users/views.py index 4006dd6..55921ca 100644 --- a/gn_auth/auth/authorisation/users/views.py +++ b/gn_auth/auth/authorisation/users/views.py @@ -337,7 +337,11 @@ def list_all_users() -> Response: """List all the users.""" _kwargs = { key: value - for key, value in request.json.items() + for key, value in ( + request.json.items() if request.json + else { + "email": "", "name": "", "verified": "", "age": "" + }) if key in ("email", "name", "verified", "age") } |