Skip to content

Commit

Permalink
Merge pull request #58 from CanDIG/bugfix/missing-response
Browse files Browse the repository at this point in the history
DIG-1833: Query returns all donors to the clinical data table when no donors match a genomic query
  • Loading branch information
OrdiNeu authored Oct 24, 2024
2 parents 9f42786 + 881bf90 commit a83b046
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion query_server/query_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ def query(treatment="", primary_site="", drug_name="", systemic_therapy_type="",
# sample_ids = genomic_query_info[cohort]

htsget_found_donors = {}
for response in htsget['response']:
responses = htsget['response'] if 'response' in htsget else []
for response in responses:
for case_data in response['caseLevelData']:
if 'biosampleId' not in case_data:
logger.error(f"Could not parse htsget response for {case_data}")
Expand Down

0 comments on commit a83b046

Please sign in to comment.