From 044d3baf389c121697dec2fe65e1e72af79b2980 Mon Sep 17 00:00:00 2001 From: Sofia Stamouli Date: Mon, 11 Dec 2023 15:44:18 +0100 Subject: [PATCH] Apply review suggestions --- cg/cli/workflow/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cg/cli/workflow/commands.py b/cg/cli/workflow/commands.py index 4462d99d8a..dacba46b16 100644 --- a/cg/cli/workflow/commands.py +++ b/cg/cli/workflow/commands.py @@ -26,6 +26,7 @@ from cg.meta.workflow.nf_analysis import NfAnalysisAPI from cg.models.cg_config import CGConfig from cg.store import Store +from cg.constants.constants import MetaApis OPTION_DRY = click.option( "-d", "--dry-run", help="Simulate process without executing", is_flag=True @@ -100,7 +101,7 @@ def metrics_deliver(context: CGConfig, case_id: str, dry_run: bool) -> None: If QC metrics are met it sets the status in Trailblazer to complete. If failed, it sets it as failed and adds a comment with information of the failed metrics.""" - analysis_api: RnafusionAnalysisAPI | TaxprofilerAnalysisAPI = context.meta_apis["analysis_api"] + analysis_api: NfAnalysisAPI = context.meta_apis[MetaApis.ANALYSIS_API] try: analysis_api.status_db.verify_case_exists(case_internal_id=case_id)