Skip to content

Commit

Permalink
update query param names
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh authored and OrdiNeu committed Oct 18, 2024
1 parent 47416a5 commit ffdc3e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions query_server/query_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def discovery_programs():
return fix_dicts(ret_val), 200

@app.route('/discovery/query')
def discovery_query(treatment="", primary_site="", systemic_therapy="", systemic_therapy_type="", chrom="", gene="", assembly="hg38", exclude_cohorts=[]):
def discovery_query(treatment="", primary_site="", drug_name="", chrom="", gene="", assembly="hg38", exclude_cohorts=[]):
url = f"{config.KATSU_URL}/v3/explorer/donors/"
headers = {}
for k in request.headers.keys():
Expand All @@ -442,8 +442,7 @@ def discovery_query(treatment="", primary_site="", systemic_therapy="", systemic
param_mapping = [
(treatment, "treatment_type"),
(primary_site, "primary_site"),
(systemic_therapy, "systemic_therapy_drug_name"),
(systemic_therapy_type, "systemic_therapy_type"),
(drug_name, "systemic_therapy_drug_name"),
(exclude_cohorts, "exclude_cohorts")
]
params = {
Expand Down

0 comments on commit ffdc3e9

Please sign in to comment.