Skip to content

Commit

Permalink
feat(refactor): (#3957)
Browse files Browse the repository at this point in the history
### Changed

- Refactor get-families-with-samples
  • Loading branch information
henrikstranneheim authored Nov 20, 2024
1 parent 85270e5 commit 415ff99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cg/store/crud/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ def get_cases_with_analyzes(self) -> Query:
"""Return all cases in the database with an analysis."""
return self._get_outer_join_cases_with_analyses_query()

def get_families_with_samples(self) -> Query:
def get_cases_with_samples(self) -> Query:
"""Return all cases in the database with samples."""
return self._get_join_cases_with_samples_query()

Expand Down Expand Up @@ -1218,7 +1218,7 @@ def observations_to_upload(self, workflow: Workflow = None) -> Query:
CaseFilter.WITH_LOQUSDB_SUPPORTED_SEQUENCING_METHOD,
]
records: Query = apply_case_filter(
cases=self.get_families_with_samples(),
cases=self.get_cases_with_samples(),
filter_functions=case_filter_functions,
workflow=workflow,
)
Expand All @@ -1229,7 +1229,7 @@ def observations_to_upload(self, workflow: Workflow = None) -> Query:
def observations_uploaded(self, workflow: Workflow = None) -> Query:
"""Return observations that have been uploaded."""
records: Query = apply_case_filter(
cases=self.get_families_with_samples(),
cases=self.get_cases_with_samples(),
filter_functions=[CaseFilter.WITH_LOQUSDB_SUPPORTED_WORKFLOW],
workflow=workflow,
)
Expand Down

0 comments on commit 415ff99

Please sign in to comment.