James McCool commited on
Commit
d2983d0
·
1 Parent(s): 33f0869

Fix session state assignment for diversity recalculation in Manage Portfolio tab

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1773,7 +1773,7 @@ if selected_tab == 'Manage Portfolio':
1773
  st.info("No saved base frames available")
1774
  with recalc_div_col:
1775
  if st.button("Recalculate Diversity"):
1776
- st.session_state['display_frame']['Diversity'] = recalc_diversity(st.session_state['display_frame'], st.session_state['player_columns'])
1777
  st.rerun()
1778
  with set_base_col:
1779
  with st.popover("New Base Setting"):
 
1773
  st.info("No saved base frames available")
1774
  with recalc_div_col:
1775
  if st.button("Recalculate Diversity"):
1776
+ st.session_state['working_frame']['Diversity'] = recalc_diversity(st.session_state['display_frame'], st.session_state['player_columns'])
1777
  st.rerun()
1778
  with set_base_col:
1779
  with st.popover("New Base Setting"):