James McCool
commited on
Commit
·
889410b
1
Parent(s):
6c2ea99
Fix variable usage in load_contest_file.py for contest name matching
Browse files- Updated the loop in load_contest_file to iterate over contest_names instead of helper_names for accurate matching.
- Ensured that the score cutoff logic remains intact while improving the correctness of the contest data processing.
global_func/load_contest_file.py
CHANGED
|
@@ -54,10 +54,10 @@ def load_contest_file(upload, helper = None, sport = None):
|
|
| 54 |
helper_names = helper_df.Player.unique()
|
| 55 |
|
| 56 |
contest_match_dict = {}
|
| 57 |
-
for names in
|
| 58 |
match = process.extractOne(
|
| 59 |
names,
|
| 60 |
-
|
| 61 |
score_cutoff = 85
|
| 62 |
)
|
| 63 |
if match:
|
|
|
|
| 54 |
helper_names = helper_df.Player.unique()
|
| 55 |
|
| 56 |
contest_match_dict = {}
|
| 57 |
+
for names in contest_names:
|
| 58 |
match = process.extractOne(
|
| 59 |
names,
|
| 60 |
+
helper_names,
|
| 61 |
score_cutoff = 85
|
| 62 |
)
|
| 63 |
if match:
|