Yara Kyrychenko commited on
Commit
5bdc324
·
1 Parent(s): 9103751

fix typo with party

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -72,9 +72,10 @@ if 'p' not in st.query_params:
72
  st.query_params['p'] = st.radio("Select a condition for the conversation",
73
  ['1', '2', '3', '4'],
74
  help="1 = base, 2 = bridging, 3 = personalization, 4 = bridging + personalization")
 
75
  if 'id' not in st.query_params:
76
  st.query_params['id'] = st.session_state.random_pid
77
- if 'party' not in st.query_params:
78
  st.session_state.party = st.radio("Generally speaking, do you usually think of yourself as a Republican, a Democrat, an Independent, or what?",
79
  ['','Republican', 'Democrat', 'Independent', 'Other'])
80
  st.query_params['party'] = st.session_state.party
 
72
  st.query_params['p'] = st.radio("Select a condition for the conversation",
73
  ['1', '2', '3', '4'],
74
  help="1 = base, 2 = bridging, 3 = personalization, 4 = bridging + personalization")
75
+
76
  if 'id' not in st.query_params:
77
  st.query_params['id'] = st.session_state.random_pid
78
+ if 'party' not in st.query_params or st.query_params['party'] == '':
79
  st.session_state.party = st.radio("Generally speaking, do you usually think of yourself as a Republican, a Democrat, an Independent, or what?",
80
  ['','Republican', 'Democrat', 'Independent', 'Other'])
81
  st.query_params['party'] = st.session_state.party