aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-07-26 09:55:15 +0300
committerFrederick Muriuki Muriithi2023-07-26 11:24:42 +0300
commit376f3699727d6a1c99fd09f9ace020a1d280ab4c (patch)
tree786804a339e102dd6ec016a065701e7fcfe9ad34
parentbc6108f83fa99a69752778253761d763a0b99db4 (diff)
downloadgenenetwork2-376f3699727d6a1c99fd09f9ace020a1d280ab4c.tar.gz
Avoid conflating `dataset_id` with `trait_name`.
-rw-r--r--wqflask/wqflask/metadata_edits.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py
index d33dc55d..b0251f99 100644
--- a/wqflask/wqflask/metadata_edits.py
+++ b/wqflask/wqflask/metadata_edits.py
@@ -245,7 +245,7 @@ def update_phenotype(dataset_id: str, name: str):
{
"trait_name": str(name),
"phenotype_id": str(phenotype_id),
- "dataset_id": name,
+ "dataset_id": dataset_id,
"dataset_name": request.args["dataset_name"],
"resource_id": request.args.get("resource-id"),
"author": author,
@@ -340,7 +340,8 @@ View the diffs <a href='{url}' target='_blank'>here</a>", "success")
diff_data.update(
{
"phenotype_id": str(phenotype_id),
- "dataset_id": name,
+ "dataset_id": dataset_id,
+ "trait_name": name,
"resource_id": request.args.get("resource-id"),
"author": author,
"timestamp": (