James McCool
commited on
Commit
·
69d924b
1
Parent(s):
5581d98
Update size selection logic in app.py: conditionally include size options based on sport type, ensuring appropriate functionality for NFL, MLB, and NHL while defaulting to an empty selection for others.
Browse files
app.py
CHANGED
@@ -1013,7 +1013,10 @@ with tab2:
|
|
1013 |
player_remove = st.multiselect("Remove players?", options=sorted(list(player_names)), default=[])
|
1014 |
team_include = st.multiselect("Include teams?", options=sorted(list(set(st.session_state['projections_df']['team'].unique()))), default=[])
|
1015 |
team_remove = st.multiselect("Remove teams?", options=sorted(list(set(st.session_state['projections_df']['team'].unique()))), default=[])
|
1016 |
-
|
|
|
|
|
|
|
1017 |
|
1018 |
submitted = st.form_submit_button("Submit")
|
1019 |
if submitted:
|
|
|
1013 |
player_remove = st.multiselect("Remove players?", options=sorted(list(player_names)), default=[])
|
1014 |
team_include = st.multiselect("Include teams?", options=sorted(list(set(st.session_state['projections_df']['team'].unique()))), default=[])
|
1015 |
team_remove = st.multiselect("Remove teams?", options=sorted(list(set(st.session_state['projections_df']['team'].unique()))), default=[])
|
1016 |
+
if sport_var in ['NFL', 'MLB', 'NHL']:
|
1017 |
+
size_include = st.multiselect("Include sizes?", options=sorted(list(set(st.session_state['working_frame']['Size'].unique()))), default=[])
|
1018 |
+
else:
|
1019 |
+
size_include = []
|
1020 |
|
1021 |
submitted = st.form_submit_button("Submit")
|
1022 |
if submitted:
|