diff options
author | BonfaceKilz | 2021-11-04 12:41:39 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-11-04 15:22:41 +0300 |
commit | 4df8fc0be487005e471cb198f9168274463dac25 (patch) | |
tree | 1ddd403a0c4f36f84624f883dc61fec7f88f1d22 | |
parent | 6633a39a54d7f1a66ee6671b37100f22388ccfab (diff) | |
download | genenetwork2-4df8fc0be487005e471cb198f9168274463dac25.tar.gz |
Use the correct dataset_id in sql query
-rw-r--r-- | wqflask/wqflask/metadata_edits.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py index bc24e92f..572db080 100644 --- a/wqflask/wqflask/metadata_edits.py +++ b/wqflask/wqflask/metadata_edits.py @@ -271,7 +271,7 @@ def update_phenotype(dataset_id: str, name: str): dict_.update({ "author": author, "publishdata_id": publishdata_id, - "dataset_id": data_.get("dataset-name"), + "dataset_id": name, "timestamp": datetime.datetime.now().strftime( "%Y-%m-%d %H:%M:%S") }) @@ -480,7 +480,7 @@ def approve_data(resource_id:str, file_name: str): insert(conn, table="metadata_audit", data=MetadataAudit( - dataset_id=name.split(".")[0], # use the dataset name + dataset_id=sample_data.get("dataset_id"), editor=sample_data.get("author"), json_data=json.dumps(sample_data))) if modifications: |