From 2abf4b733e4a83c5237dc4fb8f3818b6c70a1f9f Mon Sep 17 00:00:00 2001 From: Anandashankar Anil Date: Tue, 7 Jan 2025 15:18:19 +0100 Subject: [PATCH] Link to flowcells on instrument type --- run_dir/design/deliveries.html | 8 +++++++- status/deliveries.py | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/run_dir/design/deliveries.html b/run_dir/design/deliveries.html index 676e63379..8cc2fa8d7 100644 --- a/run_dir/design/deliveries.html +++ b/run_dir/design/deliveries.html @@ -145,7 +145,13 @@

- {{ flowcell_id }} + {% set url_addition = "" %} + {% if flowcell.get("instrument_type") == "element"%} + {% set url_addition = "_element" %} + {% elif flowcell.get("instrument_type") == "ont"%} + {% set url_addition = "_ont" %} + {% end %} + {{ flowcell_id }} {{ flowcell['flowcell_status'] }}
diff --git a/status/deliveries.py b/status/deliveries.py index 7c586f86b..1f11f2825 100644 --- a/status/deliveries.py +++ b/status/deliveries.py @@ -159,6 +159,7 @@ def get(self): # define bioinfo checklist sample_data = flowcells[flowcell_id][lane_id][sample_id] + instrument_type = sample_data.get("instrument_type") checklist = self.__fill_checklist(sample_data) if checklist["total"] and len(checklist["total"]) == len( checklist["passed"] @@ -233,6 +234,7 @@ def get(self): flowcell_status = self.__aggregate_status(flowcell_statuses) runs_bioinfo[flowcell_id]["flowcell_status"] = flowcell_status runs_bioinfo[flowcell_id]["checklist"] = flowcell_checklists + runs_bioinfo[flowcell_id]["instrument_type"] = instrument_type # add flowcell_status to the status_list (needed for filtering) if flowcell_status not in status_list: