diff options
Diffstat (limited to 'gn_auth/auth/authorisation/data')
-rw-r--r-- | gn_auth/auth/authorisation/data/views.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gn_auth/auth/authorisation/data/views.py b/gn_auth/auth/authorisation/data/views.py index 83f4e4b..86dafe5 100644 --- a/gn_auth/auth/authorisation/data/views.py +++ b/gn_auth/auth/authorisation/data/views.py @@ -186,16 +186,16 @@ def __search_mrna__(): def __request_key__(key: str, default: Any = ""): if bool(request.json): return request.json.get(#type: ignore[union-attr] - key, request.args.get(key, request.form.get(key, default))) - return request.args.get(key, request.form.get(key, default)) + key, request.args.get(key, request.json.get(key, default))) + return request.args.get(key, request.json.get(key, default)) def __request_key_list__(key: str, default: tuple[Any, ...] = tuple()): if bool(request.json): return (request.json.get(key,[])#type: ignore[union-attr] - or request.args.getlist(key) or request.form.getlist(key) + or request.args.getlist(key) or request.json.getlist(key) or list(default)) return (request.args.getlist(key) - or request.form.getlist(key) or list(default)) + or request.json.getlist(key) or list(default)) def __search_genotypes__(): query = __request_key__("query", "") |