aboutsummaryrefslogtreecommitdiff
path: root/gn3/auth
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/auth')
-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):