aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/views.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index ed5398a2..11e1bfaa 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -593,10 +593,13 @@ def update_phenotype():
f"{phenotype_id}.{current_time}.json")
with open(diff_output, "w") as f:
dict_ = json.loads(r.get("output"))
- dict_.update({"author": author.decode('utf-8')})
- dict_.update({"publishdata_id": publishdata_id})
- dict_.update({"timestamp": datetime.datetime.now().strftime(
- "%Y-%m-%d %H:%M:%S")})
+ dict_.update({
+ "author": author.decode('utf-8'),
+ "publishdata_id": publishdata_id,
+ "dataset_id": data_.get("dataset-name"),
+ "timestamp": datetime.datetime.now().strftime(
+ "%Y-%m-%d %H:%M:%S")
+ })
f.write(json.dumps(dict_))
flash("Sample-data has been successfully uploaded", "success")
# Run updates: