From 1ff4d8ca6b8bedda7e9e5a304142aa43bf869d94 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 26 Sep 2024 11:16:08 -0500 Subject: 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. --- gn_auth/auth/authorisation/resources/request_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn_auth/auth/authorisation/resources/request_utils.py') 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()) -- cgit v1.2.3