From 376f3699727d6a1c99fd09f9ace020a1d280ab4c Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 26 Jul 2023 09:55:15 +0300 Subject: Avoid conflating `dataset_id` with `trait_name`. --- wqflask/wqflask/metadata_edits.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'wqflask') 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 here", "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": ( -- cgit v1.2.3