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: