From dbc0089b9ebdc18fdaff09342da167854380b0e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isak=20Ohlsson=20=C3=85ngnell?= <40887124+islean@users.noreply.github.com> Date: Thu, 29 Aug 2024 11:37:18 +0200 Subject: [PATCH] Patch sequencing_started_at (#3661) (patch) ### Fixed - Default value if sequencing_started_at is not available --- cg/cli/get.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cg/cli/get.py b/cg/cli/get.py index ee7d18ba9b..bf73a29121 100644 --- a/cg/cli/get.py +++ b/cg/cli/get.py @@ -198,7 +198,11 @@ def get_sequencing_run(context: click.Context, samples: bool, flow_cell_id: str) sequencing_run.device.internal_id, sequencing_run.sequencer_type, sequencing_run.sequencer_name, - sequencing_run.sequencing_started_at.date(), + ( + sequencing_run.sequencing_started_at.date() + if sequencing_run.sequencing_started_at + else "Not available" + ), sequencing_run.sequencing_completed_at.date(), sequencing_run.archived_at.date() if sequencing_run.archived_at else "No", sequencing_run.data_availability,