From ffdc3e93c68cea4e6cde46d495bc0820f1ff6dcc Mon Sep 17 00:00:00 2001 From: Daisie Huang Date: Thu, 17 Oct 2024 17:46:02 -0700 Subject: [PATCH] update query param names --- query_server/query_operations.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/query_server/query_operations.py b/query_server/query_operations.py index 2010f40..814e888 100644 --- a/query_server/query_operations.py +++ b/query_server/query_operations.py @@ -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(): @@ -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 = {