Skip to content

Commit

Permalink
fix dict
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrOertlin committed Mar 19, 2024
1 parent 36f75ab commit ba03c0b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion genotype_api/services/analysis_service/analysis_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,13 @@ def __init__(self, session: Session):

def get_analysis_with_genotype_response(self, analysis_id: int) -> AnalysisWithGenotypeResponse:
analysis: Analysis = get_analysis_by_id(session=self.session, analysis_id=analysis_id)
return AnalysisWithGenotypeResponse(**analysis.dict())
return AnalysisWithGenotypeResponse(
type=analysis.type,
source=analysis.source,
sex=analysis.sex,
created_at=analysis.created_at,
sample_id=analysis.sample_id,
plate_id=analysis.plate_id,
id=analysis.id,
genotypes=analysis.genotypes,
)

0 comments on commit ba03c0b

Please sign in to comment.