James McCool commited on
Commit
8cb0690
·
1 Parent(s): c572c45

Fix name mismatch handling in app.py

Browse files

- Removed unnecessary variable reassignment in the find_name_mismatches function call, streamlining the code for better readability and maintainability.
- This change ensures that the session state is updated correctly without altering the intended logic of the function.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ with tab1:
79
  st.session_state['projections_df'] = projections.copy()
80
  st.session_state['projections_df']['salary'] = (st.session_state['projections_df']['salary'].astype(str).str.replace(',', '').astype(float).astype(int))
81
  # Run name matching only once when first loading the files
82
- st.session_state['Contest'], st.session_state['projections_df'], st.session_state['ownership_dict'], st.session_state['actual_dict'] = find_name_mismatches(st.session_state['Contest'], st.session_state['projections_df'], st.session_state['ownership_dict'], st.session_state['actual_dict'])
83
 
84
  with tab2:
85
  if 'Contest' in st.session_state and 'projections_df' in st.session_state:
 
79
  st.session_state['projections_df'] = projections.copy()
80
  st.session_state['projections_df']['salary'] = (st.session_state['projections_df']['salary'].astype(str).str.replace(',', '').astype(float).astype(int))
81
  # Run name matching only once when first loading the files
82
+ st.session_state['Contest'], st.session_state['projections_df'], st.session_state['ownership_dict'], st.session_state['actual_dict'] = find_name_mismatches(st.session_state['Contest'], st.session_state['projections_df'], st.session_state['ownership_dict'], st.session_state['actual_dict'])
83
 
84
  with tab2:
85
  if 'Contest' in st.session_state and 'projections_df' in st.session_state: