James McCool
commited on
Commit
·
82d5eab
1
Parent(s):
1e6d51e
Remove redundant metric calculation logging in app.py and enhance user feedback in find_name_mismatches.py
Browse files- Eliminated the logging of ownership_dict in app.py to streamline output and improve clarity.
- Added a success message for cases where no changes are applied in find_name_mismatches.py, enhancing user feedback during the matching process.
- app.py +0 -2
- global_func/find_name_mismatches.py +3 -0
app.py
CHANGED
|
@@ -120,8 +120,6 @@ with tab2:
|
|
| 120 |
if entry_parse_var == 'Specific' and entry_names:
|
| 121 |
working_df = working_df[working_df['BaseName'].isin(entry_names)]
|
| 122 |
|
| 123 |
-
# Calculate metrics based on game type
|
| 124 |
-
st.write(st.session_state['ownership_dict'])
|
| 125 |
if type_var == 'Classic':
|
| 126 |
working_df['stack'] = working_df.apply(
|
| 127 |
lambda row: Counter(
|
|
|
|
| 120 |
if entry_parse_var == 'Specific' and entry_names:
|
| 121 |
working_df = working_df[working_df['BaseName'].isin(entry_names)]
|
| 122 |
|
|
|
|
|
|
|
| 123 |
if type_var == 'Classic':
|
| 124 |
working_df['stack'] = working_df.apply(
|
| 125 |
lambda row: Counter(
|
global_func/find_name_mismatches.py
CHANGED
|
@@ -92,6 +92,9 @@ def find_name_mismatches(contest_df, projections_df, ownership_df, fpts_df):
|
|
| 92 |
|
| 93 |
st.success("All changes applied successfully!")
|
| 94 |
return contest_df, projections_df, ownership_df, fpts_df
|
|
|
|
|
|
|
|
|
|
| 95 |
else:
|
| 96 |
st.success("All players have been automatically matched!")
|
| 97 |
# Apply automatic matches
|
|
|
|
| 92 |
|
| 93 |
st.success("All changes applied successfully!")
|
| 94 |
return contest_df, projections_df, ownership_df, fpts_df
|
| 95 |
+
else:
|
| 96 |
+
st.success("No changes applied")
|
| 97 |
+
return contest_df, projections_df, ownership_df, fpts_df
|
| 98 |
else:
|
| 99 |
st.success("All players have been automatically matched!")
|
| 100 |
# Apply automatic matches
|