diff options
author | Frederick Muriuki Muriithi | 2024-09-26 11:16:08 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-26 11:26:51 -0500 |
commit | 1ff4d8ca6b8bedda7e9e5a304142aa43bf869d94 (patch) | |
tree | 59451f461b77440d0e392f4d42146587e4e56513 /gn_auth/auth/authorisation/resources/request_utils.py | |
parent | 1968503b6b01e8612d1d2aaedd7c1d80092ba2de (diff) | |
download | gn-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.py | 2 |
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()) |