James McCool commited on
Commit
a134635
·
1 Parent(s): 403e6d8

Add return statement for unsubmitted form state in find_name_mismatches function

Browse files

- Added a return statement to ensure the current state is preserved if the form hasn't been submitted, enhancing user experience and maintaining data integrity during processing.

global_func/find_name_mismatches.py CHANGED
@@ -106,6 +106,9 @@ def find_name_mismatches(contest_df, projections_df, ownership_df, fpts_df):
106
 
107
  st.success("All changes applied successfully!")
108
  return contest_raw, projections_raw, ownership_dict, fpts_dict
 
 
 
109
  else:
110
  st.success("All players have been automatically matched!")
111
  # Apply automatic matches
 
106
 
107
  st.success("All changes applied successfully!")
108
  return contest_raw, projections_raw, ownership_dict, fpts_dict
109
+
110
+ # Return the current state if form hasn't been submitted yet
111
+ return contest_raw, projections_raw, ownership_dict, fpts_dict
112
  else:
113
  st.success("All players have been automatically matched!")
114
  # Apply automatic matches