about summary refs log tree commit diff
path: root/uploader/phenotypes
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-01-30 13:11:00 -0600
committerFrederick Muriuki Muriithi2026-01-30 13:11:00 -0600
commitb5a2b5607f92973060a2af1555bfe0ffa280945f (patch)
tree3afee2e339e038b7cb63f5d047a3f30962e0e8b7 /uploader/phenotypes
parentf1b68d153fa9b2f97aed55e9eeab6c295e0bea21 (diff)
downloadgn-uploader-main.tar.gz
Fetch and display actual details for phenotypes being deleted. HEAD main
Diffstat (limited to 'uploader/phenotypes')
-rw-r--r--uploader/phenotypes/views.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index 9b635e2..549412b 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -1260,10 +1260,14 @@ def delete_phenotypes(# pylint: disable=[unused-argument]
                         loglevel=_loglevel)
                 ).either(__handle_error__, proceed_to_job_status)
             case _:
+                _phenos = tuple()
+                if len(xref_ids) > 0:
+                    _phenos = dataset_phenotypes(
+                        conn, population["Id"], dataset["Id"], xref_ids=xref_ids)
+
                 return render_template(
                     "phenotypes/confirm-delete-phenotypes.html",
                     species=species,
                     population=population,
                     dataset=dataset,
-                    phenotypes=[{"xref_id": xref_id}
-                                for xref_id in xref_ids])
+                    phenotypes=_phenos)