Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIG-1833: Query returns all donors to the clinical data table when no donors match a genomic query #58

Merged
merged 14 commits into from
Oct 24, 2024
Merged
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