James McCool
commited on
Commit
·
886a898
1
Parent(s):
cabee22
Update filtering instructions and button functionality in app.py
Browse files- Added an informational note regarding manual reset of filters to enhance user understanding of the filtering process.
- Simplified the layout by removing the reset button column, retaining only the clear data button for a more streamlined interface.
app.py
CHANGED
@@ -230,25 +230,10 @@ with tab2:
|
|
230 |
st.session_state['field_stack_frame'] = create_stack_exposures(working_df)
|
231 |
|
232 |
with st.expander("Info and filters"):
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
with reset_col:
|
238 |
-
if st.button("Reset filters"):
|
239 |
-
filter_keys = [
|
240 |
-
'entry_parse_var', 'entry_names',
|
241 |
-
'low_entries_var', 'high_entries_var',
|
242 |
-
'stack_parse_var', 'stack_names',
|
243 |
-
'stack_size_parse_var', 'stack_size_names',
|
244 |
-
'player_parse_var', 'player_names',
|
245 |
-
'pos_var', 'pos_select'
|
246 |
-
]
|
247 |
-
for each_var in filter_keys:
|
248 |
-
if each_var in st.session_state:
|
249 |
-
del st.session_state[each_var]
|
250 |
-
|
251 |
-
st.rerun()
|
252 |
with st.form(key='filter_form'):
|
253 |
users_var, entries_var, stack_var, stack_size_var, player_var = st.columns(5)
|
254 |
with users_var:
|
|
|
230 |
st.session_state['field_stack_frame'] = create_stack_exposures(working_df)
|
231 |
|
232 |
with st.expander("Info and filters"):
|
233 |
+
st.info("Note that any filtering here needs to be reset manually, i.e. if you parse down the specific users and want to reset the table, just backtrack your filtering by setting it back to 'All'")
|
234 |
+
if st.button('Clear data', key='reset3'):
|
235 |
+
st.session_state.clear()
|
236 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
with st.form(key='filter_form'):
|
238 |
users_var, entries_var, stack_var, stack_size_var, player_var = st.columns(5)
|
239 |
with users_var:
|