maom commited on
Commit
5b5977a
·
verified ·
1 Parent(s): 833f2a3

fix syntax

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,12 +8,12 @@ st.set_page_config(layout='wide')
8
 
9
  # parse out gene_ids from URL query args to it's possible to link to this page
10
  query_params = st.query_params()
11
- if "gene_id_1" %in% names(query_params):
12
  gene_id_1 = query_params["gene_id_1"]
13
  else:
14
  gene_id_1 = "CNAG_04365"
15
 
16
- if "gene_id_2" %in% names(query_params):
17
  gene_id_2 = query_params["gene_id_2"]
18
  else:
19
  gene_id_2 = "CNAG_04222"
 
8
 
9
  # parse out gene_ids from URL query args to it's possible to link to this page
10
  query_params = st.query_params()
11
+ if "gene_id_1" in query_params.keys():
12
  gene_id_1 = query_params["gene_id_1"]
13
  else:
14
  gene_id_1 = "CNAG_04365"
15
 
16
+ if "gene_id_2" in query_params.keys():
17
  gene_id_2 = query_params["gene_id_2"]
18
  else:
19
  gene_id_2 = "CNAG_04222"