diff options
author | Frederick Muriuki Muriithi | 2023-04-10 11:49:25 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-04-10 11:49:25 +0300 |
commit | f2cea88b5790b650b702ee305c1cb54545243307 (patch) | |
tree | 466f30f02ac64d097eeef802c2589ce287c685b0 /gn3/auth | |
parent | acde4fc57250cf2ecc0bb12b34d523d8cf306c3e (diff) | |
download | genenetwork3-f2cea88b5790b650b702ee305c1cb54545243307.tar.gz |
Update expected request key.
Diffstat (limited to 'gn3/auth')
-rw-r--r-- | gn3/auth/authorisation/data/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/auth/authorisation/data/views.py b/gn3/auth/authorisation/data/views.py index 9a924b4..a30096d 100644 --- a/gn3/auth/authorisation/data/views.py +++ b/gn3/auth/authorisation/data/views.py @@ -365,11 +365,11 @@ def link_genotypes() -> Response: _group_id = uuid.UUID(form.get("group_id")) except TypeError as terr: raise InvalidData("Expected a UUID for 'group_id' value.") from terr - if not bool(form.get("selected_datasets")): + if not bool(form.get("selected")): raise InvalidData("Expected at least one dataset to be provided.") return { "group_id": uuid.UUID(form.get("group_id")), - "datasets": form.get("selected_datasets") + "datasets": form.get("selected") } def __link__(conn: db.DbConnection, group_id: uuid.UUID, datasets: dict): |