James McCool
commited on
Commit
·
a14517f
1
Parent(s):
55d145d
Update lineup filtering options in app.py to replace multiselect with selectbox for improved user experience
Browse files
app.py
CHANGED
|
@@ -1302,7 +1302,7 @@ with tab2:
|
|
| 1302 |
for col in st.session_state['working_frame'].columns:
|
| 1303 |
if col not in excluded_cols:
|
| 1304 |
player_names.update(st.session_state['working_frame'][col].unique())
|
| 1305 |
-
st.write(st.
|
| 1306 |
if st.session_state['conditional_var_1'] == 'Players':
|
| 1307 |
conditional_remove = st.multiselect("Remove lineups containing players:", options=sorted(list(player_names)), default=[])
|
| 1308 |
elif st.session_state['conditional_var_1'] == 'Stacks':
|
|
|
|
| 1302 |
for col in st.session_state['working_frame'].columns:
|
| 1303 |
if col not in excluded_cols:
|
| 1304 |
player_names.update(st.session_state['working_frame'][col].unique())
|
| 1305 |
+
st.write(st.selectbox("Remove: ", options=['Players', 'Stacks'], key='conditional_var_1'), "if lineup ", st.selectbox("contains: ", options=['Players', 'Stacks'], key='conditional_var_2'))
|
| 1306 |
if st.session_state['conditional_var_1'] == 'Players':
|
| 1307 |
conditional_remove = st.multiselect("Remove lineups containing players:", options=sorted(list(player_names)), default=[])
|
| 1308 |
elif st.session_state['conditional_var_1'] == 'Stacks':
|