James McCool
commited on
Commit
·
607e20a
1
Parent(s):
0c721eb
Refactor session state assignments in app.py for clarity
Browse files- Updated session state assignments for sport and game type selections to reference existing session state variables, improving code clarity and consistency.
- This change enhances maintainability and prepares for future enhancements in user interaction.
app.py
CHANGED
|
@@ -467,8 +467,8 @@ if selected_tab == 'Data Load':
|
|
| 467 |
st.session_state['unique_players'] = [p for p in st.session_state['unique_players'] if p != 'nan']
|
| 468 |
|
| 469 |
if selected_tab == 'Contest Analysis':
|
| 470 |
-
st.session_state['sport_select'] = sport_init
|
| 471 |
-
st.session_state['type_var'] = type_init
|
| 472 |
|
| 473 |
if 'display_contest_info' in st.session_state:
|
| 474 |
with st.expander("Info and filters"):
|
|
|
|
| 467 |
st.session_state['unique_players'] = [p for p in st.session_state['unique_players'] if p != 'nan']
|
| 468 |
|
| 469 |
if selected_tab == 'Contest Analysis':
|
| 470 |
+
st.session_state['sport_select'] = st.session_state['sport_init']
|
| 471 |
+
st.session_state['type_var'] = st.session_state['type_init']
|
| 472 |
|
| 473 |
if 'display_contest_info' in st.session_state:
|
| 474 |
with st.expander("Info and filters"):
|