Skip to content

Commit

Permalink
Revert to previous
Browse files Browse the repository at this point in the history
  • Loading branch information
ahdamin committed Dec 13, 2024
1 parent aa566bf commit 9b10663
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions genotype_api/database/crud/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,7 @@ def _get_samples_with_analyses_and_genotypes() -> Query:
return (
select(Sample)
.distinct()
.options(
selectinload(Sample.analyses)
.selectinload(Analysis.genotypes)
.selectinload(Genotype.analysis)
)
.options(selectinload(Sample.analyses).selectinload(Analysis.genotypes))
.join(Analysis, Analysis.sample_id == Sample.id)
)

Expand Down

0 comments on commit 9b10663

Please sign in to comment.