Skip to content

Commit 9b10663

Browse files
committed
Revert to previous
1 parent aa566bf commit 9b10663

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

genotype_api/database/crud/read.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,7 @@ def _get_samples_with_analyses_and_genotypes() -> Query:
247247
return (
248248
select(Sample)
249249
.distinct()
250-
.options(
251-
selectinload(Sample.analyses)
252-
.selectinload(Analysis.genotypes)
253-
.selectinload(Genotype.analysis)
254-
)
250+
.options(selectinload(Sample.analyses).selectinload(Analysis.genotypes))
255251
.join(Analysis, Analysis.sample_id == Sample.id)
256252
)
257253

0 commit comments

Comments
 (0)