aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2021-08-02 21:25:30 +0300
committerBonfaceKilz2021-08-03 15:49:50 +0300
commit2c0b0d7132ff67709de13d986a92293b68e275e2 (patch)
treea2fd83a2e7e1614ffa1fbd60c8af978883915ef1 /wqflask
parent79d6dc5ac4610ea50e61bca80598b87d42911490 (diff)
downloadgenenetwork2-2c0b0d7132ff67709de13d986a92293b68e275e2.tar.gz
wqflask: views: use dataset_id when inserting into metadata_audit
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 11e1bfaa..760d5947 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -1431,7 +1431,7 @@ def approve_data(name):
insert(conn,
table="metadata_audit",
data=MetadataAudit(
- dataset_id=sample_data.get("publishdata_id"),
+ dataset_id=name.split(".")[0], # use the dataset name
editor=sample_data.get("author"),
json_data=json.dumps(sample_data)))
# Once data is approved, rename it!