about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-04-14 10:20:13 -0500
committerFrederick Muriuki Muriithi2025-04-14 10:20:13 -0500
commit53a9a119c2966b92d9e21b46495b321cd8e75af1 (patch)
tree7e74259c63fdb55874deec5468fb03252b97ccb5
parente451654493e687dc2ec1245b6b340f170d6677d5 (diff)
downloadgn-uploader-53a9a119c2966b92d9e21b46495b321cd8e75af1.tar.gz
Provide species, population and dataset identifiers as job metadata.
-rw-r--r--uploader/phenotypes/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index 9c737fc..ec07c0c 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -983,7 +983,10 @@ def edit_upload_phenotype_data(# pylint: disable=[unused-argument]
                                        ],
                                        "phenotype-bulk-edit",
                                        extra_meta = {
-                                           "edit-file": str(edit_file)
+                                           "edit-file": str(edit_file),
+                                           "species-id": specise["SpeciesId"],
+                                           "population-id": population["Id"],
+                                           "dataset-id": dataset["Id"]
                                        }),
             jobs_db,
             f"{app.config['UPLOAD_FOLDER']}/job_errors",