We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b10663 commit 518aa5eCopy full SHA for 518aa5e
genotype_api/database/crud/update.py
@@ -32,7 +32,9 @@ async def refresh_sample_status(
32
33
async def update_sample_comment(self, sample_id: str, comment: str) -> Sample:
34
query: Query = (
35
- select(Sample).options(selectinload(Sample.analyses)).filter(Sample.id == sample_id)
+ select(Sample)
36
+ .options(selectinload(Sample.analyses).selectinload(Analysis.genotypes))
37
+ .filter(Sample.id == sample_id)
38
)
39
sample: Sample = await self.fetch_one_or_none(query)
40
0 commit comments