James McCool commited on
Commit
ba4c85f
·
1 Parent(s): 379368b

Add session state management for 'settings_base' in app.py to improve portfolio handling during user interactions. This change ensures the correct initialization of session state when working with the portfolio, enhancing overall user experience.

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -829,6 +829,7 @@ with tab2:
829
  excluded_cols = ['salary', 'median', 'Own', 'Finish_percentile', 'Dupes', 'Stack', 'Size', 'Win%', 'Lineup Edge', 'Weighted Own', 'Geomean', 'Diversity']
830
 
831
  if 'working_frame' not in st.session_state:
 
832
  st.session_state['working_frame'] = st.session_state['origin_portfolio'].copy()
833
  if site_var == 'Draftkings':
834
  if type_var == 'Classic':
 
829
  excluded_cols = ['salary', 'median', 'Own', 'Finish_percentile', 'Dupes', 'Stack', 'Size', 'Win%', 'Lineup Edge', 'Weighted Own', 'Geomean', 'Diversity']
830
 
831
  if 'working_frame' not in st.session_state:
832
+ st.session_state['settings_base'] = True
833
  st.session_state['working_frame'] = st.session_state['origin_portfolio'].copy()
834
  if site_var == 'Draftkings':
835
  if type_var == 'Classic':