James McCool commited on
Commit
405e093
·
1 Parent(s): ee0824a

Refactor export dictionary handling in app.py: simplify the export dictionary assignment by using match_dict directly and enhance user feedback by displaying the export dictionary in the app interface.

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -178,11 +178,8 @@ with tab1:
178
 
179
  # Apply the matches
180
  projections['upload_match'] = projections['player_names'].map(match_dict)
181
- st.session_state['export_dict'] = dict(zip(projections['player_names'], projections['upload_match']))
182
- # Optional: Print some debug info
183
- print("Sample of matches:")
184
- for name, match in list(match_dict.items())[:5]:
185
- print(f"{name} -> {match}")
186
 
187
  st.session_state['origin_portfolio'] = st.session_state['portfolio'].copy()
188
 
 
178
 
179
  # Apply the matches
180
  projections['upload_match'] = projections['player_names'].map(match_dict)
181
+ st.session_state['export_dict'] = match_dict # Use match_dict directly
182
+ st.write(st.session_state['export_dict'])
 
 
 
183
 
184
  st.session_state['origin_portfolio'] = st.session_state['portfolio'].copy()
185