James McCool
commited on
Commit
·
488d713
1
Parent(s):
69d924b
Update stack inclusion logic in app.py: modify condition to check for sport types (NFL, MLB, NHL) instead of 'Stack' column, enhancing stack selection functionality for specific sports.
Browse files
app.py
CHANGED
@@ -976,7 +976,7 @@ with tab2:
|
|
976 |
max_salary = st.number_input("Max acceptable salary?", value=100000, min_value=1000, step=100)
|
977 |
max_finish_percentile = st.number_input("Max acceptable finish percentile?", value=.50, min_value=0.005, step=.001)
|
978 |
min_lineup_edge = st.number_input("Min acceptable Lineup Edge?", value=-.5, min_value=-1.00, step=.001)
|
979 |
-
if
|
980 |
stack_include_toggle = st.selectbox("Include specific stacks?", options=['All Stacks', 'Specific Stacks'], index=0)
|
981 |
stack_selections = st.multiselect("If Specific Stacks, Which to include?", options=sorted(list(set(stack_dict.values()))), default=[])
|
982 |
|
|
|
976 |
max_salary = st.number_input("Max acceptable salary?", value=100000, min_value=1000, step=100)
|
977 |
max_finish_percentile = st.number_input("Max acceptable finish percentile?", value=.50, min_value=0.005, step=.001)
|
978 |
min_lineup_edge = st.number_input("Min acceptable Lineup Edge?", value=-.5, min_value=-1.00, step=.001)
|
979 |
+
if sport_var in ['NFL', 'MLB', 'NHL']:
|
980 |
stack_include_toggle = st.selectbox("Include specific stacks?", options=['All Stacks', 'Specific Stacks'], index=0)
|
981 |
stack_selections = st.multiselect("If Specific Stacks, Which to include?", options=sorted(list(set(stack_dict.values()))), default=[])
|
982 |
|