James McCool
commited on
Commit
·
5336bfc
1
Parent(s):
22ac9e4
Refactor find_name_mismatches function in find_name_mismatches.py
Browse files- Removed unnecessary success message for no changes applied, simplifying the function's logic and improving clarity in the output.
- Enhanced the overall flow of the function by focusing on successful matches and automatic matching of players.
global_func/find_name_mismatches.py
CHANGED
@@ -88,9 +88,6 @@ def find_name_mismatches(contest_df, projections_df, ownership_df, fpts_df):
|
|
88 |
st.success(f"Replaced '{selected_name}' with '{projection_name}'")
|
89 |
st.success("All changes applied successfully!")
|
90 |
return contest_df, projections_df, ownership_df, fpts_df
|
91 |
-
else:
|
92 |
-
st.success("No changes applied")
|
93 |
-
return contest_df, projections_df, ownership_df, fpts_df
|
94 |
else:
|
95 |
st.success("All players have been automatically matched!")
|
96 |
# Apply automatic matches
|
|
|
88 |
st.success(f"Replaced '{selected_name}' with '{projection_name}'")
|
89 |
st.success("All changes applied successfully!")
|
90 |
return contest_df, projections_df, ownership_df, fpts_df
|
|
|
|
|
|
|
91 |
else:
|
92 |
st.success("All players have been automatically matched!")
|
93 |
# Apply automatic matches
|