aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authorisation/resources/request_utils.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-26 11:16:08 -0500
committerFrederick Muriuki Muriithi2024-09-26 11:26:51 -0500
commit1ff4d8ca6b8bedda7e9e5a304142aa43bf869d94 (patch)
tree59451f461b77440d0e392f4d42146587e4e56513 /gn_auth/auth/authorisation/resources/request_utils.py
parent1968503b6b01e8612d1d2aaedd7c1d80092ba2de (diff)
downloadgn-auth-1ff4d8ca6b8bedda7e9e5a304142aa43bf869d94.tar.gz
Bugfix: Fix bugs that were preventing creation of geno resource
Fix the bugs that were causing the creation of a genotype resource via API to fail.
Diffstat (limited to 'gn_auth/auth/authorisation/resources/request_utils.py')
-rw-r--r--gn_auth/auth/authorisation/resources/request_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/resources/request_utils.py b/gn_auth/auth/authorisation/resources/request_utils.py
index 03d3c3b..5fe6a29 100644
--- a/gn_auth/auth/authorisation/resources/request_utils.py
+++ b/gn_auth/auth/authorisation/resources/request_utils.py
@@ -7,7 +7,7 @@ def check_form(form, *fields) -> Either:
"""Check form for errors"""
def __check_field__(errors, field):
if not bool(form.get(field)):
- return errors + (f"Missing `{field}` value.")
+ return errors + (f"Missing `{field}` value.",)
return errors
errors = reduce(__check_field__, fields, tuple())