Skip to content

Commit

Permalink
Remove commented out lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ahdamin committed Oct 8, 2024
1 parent 28948bc commit 677f18a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions genotype_api/services/endpoint_services/sample_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,12 @@ async def get_match_results(
"""
Get the match results for a specific analysis type and comparison set within a date range.
"""

# Fetch the analyses with eager loading using selectinload
analyses = await self.store.get_analyses_by_type_between_dates(
analysis_type=comparison_set, date_min=date_min, date_max=date_max
)

# Fetch the sample analysis with eager loading
sample_analysis = await self.store.get_analysis_by_type_and_sample_id(
sample_id=sample_id, analysis_type=analysis_type
)

# Perform matching using the MatchGenotypeService
matches: list[MatchResult] = MatchGenotypeService.get_matches(
analyses=analyses, sample_analysis=sample_analysis
)
Expand Down

0 comments on commit 677f18a

Please sign in to comment.