aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-04-10 11:49:25 +0300
committerFrederick Muriuki Muriithi2023-04-10 11:49:25 +0300
commitf2cea88b5790b650b702ee305c1cb54545243307 (patch)
tree466f30f02ac64d097eeef802c2589ce287c685b0 /gn3
parentacde4fc57250cf2ecc0bb12b34d523d8cf306c3e (diff)
downloadgenenetwork3-f2cea88b5790b650b702ee305c1cb54545243307.tar.gz
Update expected request key.
Diffstat (limited to 'gn3')
-rw-r--r--gn3/auth/authorisation/data/views.py4
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):