James McCool
commited on
Commit
·
2ca0600
1
Parent(s):
e025a7c
Enhance filter reset functionality in app.py
Browse files- Updated the filter reset logic to include 'filter_form' in the preserved session state keys, ensuring that the filter form remains intact during resets.
- This change improves user experience by maintaining the state of the filter form while allowing other session keys to be cleared.
app.py
CHANGED
@@ -273,7 +273,7 @@ with tab2:
|
|
273 |
with reset_col:
|
274 |
if st.button('Reset filters', key='reset4'):
|
275 |
for key in st.session_state.keys():
|
276 |
-
if key not in ['Contest', 'Contest_file', 'Contest_upload', 'player_info', 'info_maps']:
|
277 |
del st.session_state[key]
|
278 |
|
279 |
with st.form(key='filter_form'):
|
|
|
273 |
with reset_col:
|
274 |
if st.button('Reset filters', key='reset4'):
|
275 |
for key in st.session_state.keys():
|
276 |
+
if key not in ['Contest', 'Contest_file', 'Contest_upload', 'player_info', 'info_maps', 'filter_form']:
|
277 |
del st.session_state[key]
|
278 |
|
279 |
with st.form(key='filter_form'):
|