James McCool commited on
Commit
95ba261
·
1 Parent(s): 607e20a

Update session state keys for sport and game type selections in app.py

Browse files

- Changed session state keys for sport and game type selections to be more descriptive, enhancing clarity and consistency in the code.
- This update improves maintainability and prepares for future enhancements in user interaction.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -185,8 +185,8 @@ if selected_tab == 'Data Load':
185
  sport_options, date_options = st.columns(2)
186
  parse_type = 'Manual'
187
  with sport_options:
188
- sport_init = st.selectbox("Select Sport", ['MLB', 'MMA', 'GOLF', 'NBA', 'NHL', 'WNBA', 'NAS'], key='sport_select')
189
- type_init = st.selectbox("Select Game Type", ['Classic', 'Showdown'], key='type_var')
190
  try:
191
  contest_names, curr_info = grab_contest_names(db, sport_init, type_init)
192
  except:
 
185
  sport_options, date_options = st.columns(2)
186
  parse_type = 'Manual'
187
  with sport_options:
188
+ sport_init = st.selectbox("Select Sport", ['MLB', 'MMA', 'GOLF', 'NBA', 'NHL', 'WNBA', 'NAS'], key='sport_init')
189
+ type_init = st.selectbox("Select Game Type", ['Classic', 'Showdown'], key='type_init')
190
  try:
191
  contest_names, curr_info = grab_contest_names(db, sport_init, type_init)
192
  except: