Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrOertlin committed Dec 12, 2024
1 parent c6d7065 commit 482100f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genotype_api/database/crud/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def create_sample(self, sample: Sample) -> Sample:
"""Creates a sample in the database."""
sample_query: Query = select(Analysis).filter(Sample.id == sample.id)
sample_in_db = await self.fetch_one_or_none(sample_query)
if await sample_in_db:
if sample_in_db:
raise SampleExistsError
self.session.add(sample)
await self.session.commit()
Expand Down

0 comments on commit 482100f

Please sign in to comment.