Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
e7a0def
1
Parent(s):
9b90f9a
Update 'Manage Portfolio' section in 'app.py' to include unique keys for CPT/FLEX selection boxes, enhancing state management and user experience.
Browse files
app.py
CHANGED
|
@@ -1660,10 +1660,10 @@ if selected_tab == 'Manage Portfolio':
|
|
| 1660 |
player_names.update(st.session_state['working_frame'][col].unique())
|
| 1661 |
keep_remove_var = st.selectbox("Conditional:", options=['Keep', 'Remove'], index=0)
|
| 1662 |
conditional_side_alpha = st.multiselect("Lineups containing:", options=sorted(list(player_names)), default=[])
|
| 1663 |
-
cpt_flex_alpha = st.selectbox("in slot:", options=['Overall', 'CPT', 'FLEX'], index=0)
|
| 1664 |
conditional_var = st.selectbox("where they also contain:", options=['Any', 'All', 'None'], index=0)
|
| 1665 |
conditional_side_beta = st.multiselect("of the following player(s):", options=sorted(list(player_names)), default=[])
|
| 1666 |
-
cpt_flex_beta = st.selectbox("in slot:", options=['Overall', 'CPT', 'FLEX'], index=0)
|
| 1667 |
|
| 1668 |
submitted_col, export_col = st.columns(2)
|
| 1669 |
st.info("Portfolio Button applies to your overall Portfolio, Export button applies to your Custom Export")
|
|
|
|
| 1660 |
player_names.update(st.session_state['working_frame'][col].unique())
|
| 1661 |
keep_remove_var = st.selectbox("Conditional:", options=['Keep', 'Remove'], index=0)
|
| 1662 |
conditional_side_alpha = st.multiselect("Lineups containing:", options=sorted(list(player_names)), default=[])
|
| 1663 |
+
cpt_flex_alpha = st.selectbox("in slot:", options=['Overall', 'CPT', 'FLEX'], index=0, key='cpt_flex_alpha')
|
| 1664 |
conditional_var = st.selectbox("where they also contain:", options=['Any', 'All', 'None'], index=0)
|
| 1665 |
conditional_side_beta = st.multiselect("of the following player(s):", options=sorted(list(player_names)), default=[])
|
| 1666 |
+
cpt_flex_beta = st.selectbox("in slot:", options=['Overall', 'CPT', 'FLEX'], index=0, key='cpt_flex_beta')
|
| 1667 |
|
| 1668 |
submitted_col, export_col = st.columns(2)
|
| 1669 |
st.info("Portfolio Button applies to your overall Portfolio, Export button applies to your Custom Export")
|