From 2abf4b733e4a83c5237dc4fb8f3818b6c70a1f9f Mon Sep 17 00:00:00 2001 From: Anandashankar Anil Date: Tue, 7 Jan 2025 15:18:19 +0100 Subject: [PATCH 1/2] 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: From 0752c488a0200c47974607de1095d638cd742b05 Mon Sep 17 00:00:00 2001 From: Anandashankar Anil Date: Tue, 7 Jan 2025 15:19:00 +0100 Subject: [PATCH 2/2] Update run note notfication email formatting on request from OC --- status/running_notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status/running_notes.py b/status/running_notes.py index 3b090108f..71c4d4ac5 100644 --- a/status/running_notes.py +++ b/status/running_notes.py @@ -328,7 +328,7 @@ def notify_tagged_user( html = '\ \

\ - {} in the project {}, {}! The note is as follows

\ + {} in the project {}, {}
The note is as follows

\
\
\
\