Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrOertlin committed Apr 3, 2024
1 parent 07790f0 commit 4e3f913
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions genotype_api/dto/genotype.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ class GenotypeResponse(BaseModel):
analysis_id: int
allele_1: str = Field(max_length=1)
allele_2: str = Field(max_length=1)

@property
def alleles(self):
return sorted([self.allele_1, self.allele_2])

0 comments on commit 4e3f913

Please sign in to comment.