diff options
author | Frederick Muriuki Muriithi | 2023-07-26 09:55:15 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-07-26 11:24:42 +0300 |
commit | 376f3699727d6a1c99fd09f9ace020a1d280ab4c (patch) | |
tree | 786804a339e102dd6ec016a065701e7fcfe9ad34 /wqflask | |
parent | bc6108f83fa99a69752778253761d763a0b99db4 (diff) | |
download | genenetwork2-376f3699727d6a1c99fd09f9ace020a1d280ab4c.tar.gz |
Avoid conflating `dataset_id` with `trait_name`.
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/metadata_edits.py | 5 |
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": ( |