From 9b9e9599f452f15d4389a4517c21091e31feae27 Mon Sep 17 00:00:00 2001 From: ahdamin Date: Tue, 8 Jul 2025 09:48:35 +0200 Subject: [PATCH] add is-not-cancelled filter --- cg/store/crud/read.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cg/store/crud/read.py b/cg/store/crud/read.py index a75484670e..f255d5dce9 100644 --- a/cg/store/crud/read.py +++ b/cg/store/crud/read.py @@ -8,12 +8,7 @@ from sqlalchemy.orm import Query from cg.constants import SequencingRunDataAvailability, Workflow -from cg.constants.constants import ( - DNA_WORKFLOWS_WITH_SCOUT_UPLOAD, - CaseActions, - CustomerId, - SampleType, -) +from cg.constants.constants import DNA_WORKFLOWS_WITH_SCOUT_UPLOAD, CustomerId, SampleType from cg.constants.priority import SlurmQos from cg.constants.sequencing import DNA_PREP_CATEGORIES, SeqLibraryPrepCategory from cg.exc import ( @@ -1642,6 +1637,7 @@ def _get_related_samples_query( SampleFilter.BY_SUBJECT_ID, SampleFilter.BY_TUMOUR, SampleFilter.BY_CUSTOMER_ENTRY_IDS, + SampleFilter.IS_NOT_CANCELLED, ], ) if samples.count() != 1: