James McCool commited on
Commit
546a43f
·
1 Parent(s): 646dbbe

Update team selection options in app.py: switch from using 'working_frame' to 'projections_df' for team inclusion and removal, ensuring accurate data representation in player configurations.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1002,8 +1002,8 @@ with tab2:
1002
  player_names.update(st.session_state['working_frame'][col].unique())
1003
  player_lock = st.multiselect("Lock players?", options=sorted(list(player_names)), default=[])
1004
  player_remove = st.multiselect("Remove players?", options=sorted(list(player_names)), default=[])
1005
- team_include = st.multiselect("Include teams?", options=sorted(list(set(st.session_state['working_frame']['team'].unique()))), default=[])
1006
- team_remove = st.multiselect("Remove teams?", options=sorted(list(set(st.session_state['working_frame']['team'].unique()))), default=[])
1007
 
1008
  submitted = st.form_submit_button("Submit")
1009
  if submitted:
 
1002
  player_names.update(st.session_state['working_frame'][col].unique())
1003
  player_lock = st.multiselect("Lock players?", options=sorted(list(player_names)), default=[])
1004
  player_remove = st.multiselect("Remove players?", options=sorted(list(player_names)), default=[])
1005
+ team_include = st.multiselect("Include teams?", options=sorted(list(set(st.session_state['projections_df']['team'].unique()))), default=[])
1006
+ team_remove = st.multiselect("Remove teams?", options=sorted(list(set(st.session_state['projections_df']['team'].unique()))), default=[])
1007
 
1008
  submitted = st.form_submit_button("Submit")
1009
  if submitted: