James McCool
commited on
Commit
·
ada082f
1
Parent(s):
2c57866
Add return statement for current state in find_name_mismatches.py
Browse files- Included a return statement to ensure the current state of contest_df and projections_df is returned if the form hasn't been submitted, enhancing the function's robustness and user experience.
global_func/find_name_mismatches.py
CHANGED
|
@@ -89,6 +89,9 @@ def find_name_mismatches(contest_df, projections_df):
|
|
| 89 |
|
| 90 |
st.success("All changes applied successfully!")
|
| 91 |
return contest_df, projections_df
|
|
|
|
|
|
|
|
|
|
| 92 |
else:
|
| 93 |
st.success("All players have been automatically matched!")
|
| 94 |
# Apply automatic matches
|
|
|
|
| 89 |
|
| 90 |
st.success("All changes applied successfully!")
|
| 91 |
return contest_df, projections_df
|
| 92 |
+
|
| 93 |
+
# Return the current state if form hasn't been submitted yet
|
| 94 |
+
return contest_df, projections_df
|
| 95 |
else:
|
| 96 |
st.success("All players have been automatically matched!")
|
| 97 |
# Apply automatic matches
|