James McCool
commited on
Commit
·
29377be
1
Parent(s):
ba4c85f
Refine session state condition in app.py to ensure player summary assignment only occurs when the display source is 'Portfolio'. This change enhances the accuracy of player statistics management during user interactions.
Browse files
app.py
CHANGED
@@ -1249,7 +1249,7 @@ with tab2:
|
|
1249 |
player_stats = []
|
1250 |
player_columns = [col for col in display_frame.columns if col not in excluded_cols]
|
1251 |
|
1252 |
-
if st.session_state['settings_base'] and 'origin_player_exposures' in st.session_state:
|
1253 |
st.session_state['player_summary'] = st.session_state['origin_player_exposures']
|
1254 |
else:
|
1255 |
if type_var == 'Showdown':
|
|
|
1249 |
player_stats = []
|
1250 |
player_columns = [col for col in display_frame.columns if col not in excluded_cols]
|
1251 |
|
1252 |
+
if st.session_state['settings_base'] and 'origin_player_exposures' in st.session_state and display_frame_source == 'Portfolio':
|
1253 |
st.session_state['player_summary'] = st.session_state['origin_player_exposures']
|
1254 |
else:
|
1255 |
if type_var == 'Showdown':
|