James McCool commited on
Commit
703a937
·
1 Parent(s): 28cb5be

Update site selection logic in app.py: move 'Select Site' dropdown above 'Clear data' button and adjust minimum lineup edge input precision.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -687,9 +687,9 @@ with tab3:
687
  with st.container():
688
  col1, col2, col3 = st.columns(3)
689
  with col1:
 
690
  if st.button('Clear data', key='reset3'):
691
  st.session_state.clear()
692
- site_var = st.selectbox("Select Site", ['Draftkings', 'Fanduel'])
693
 
694
  with col2:
695
  sport_var = st.selectbox("Select Sport", ['NFL', 'MLB', 'NBA', 'NHL', 'MMA'])
@@ -785,7 +785,7 @@ with tab3:
785
  min_salary = st.number_input("Min acceptable salary?", value=1000, min_value=1000, step=100)
786
  max_salary = st.number_input("Max acceptable salary?", value=60000, min_value=1000, step=100)
787
  max_finish_percentile = st.number_input("Max acceptable finish percentile?", value=.50, min_value=0.005, step=.001)
788
- min_lineup_edge = st.number_input("Min acceptable Lineup Edge?", value=-.5, min_value=-1, step=.001)
789
  player_names = set()
790
  for col in st.session_state['portfolio'].columns:
791
  if col not in excluded_cols:
 
687
  with st.container():
688
  col1, col2, col3 = st.columns(3)
689
  with col1:
690
+ site_var = st.selectbox("Select Site", ['Draftkings', 'Fanduel'])
691
  if st.button('Clear data', key='reset3'):
692
  st.session_state.clear()
 
693
 
694
  with col2:
695
  sport_var = st.selectbox("Select Sport", ['NFL', 'MLB', 'NBA', 'NHL', 'MMA'])
 
785
  min_salary = st.number_input("Min acceptable salary?", value=1000, min_value=1000, step=100)
786
  max_salary = st.number_input("Max acceptable salary?", value=60000, min_value=1000, step=100)
787
  max_finish_percentile = st.number_input("Max acceptable finish percentile?", value=.50, min_value=0.005, step=.001)
788
+ min_lineup_edge = st.number_input("Min acceptable Lineup Edge?", value=-.5, min_value=-1.00, step=.001)
789
  player_names = set()
790
  for col in st.session_state['portfolio'].columns:
791
  if col not in excluded_cols: