Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def get_Competition_Code(competition_name: str)-> str:
|
|
37 |
print(competition_name)
|
38 |
# Iterate through the dictionary to find the matching competition name.
|
39 |
for code, name in competitions.items():
|
40 |
-
if name.lower() ==
|
41 |
print(code)
|
42 |
return code
|
43 |
# Return None if no match is found.
|
|
|
37 |
print(competition_name)
|
38 |
# Iterate through the dictionary to find the matching competition name.
|
39 |
for code, name in competitions.items():
|
40 |
+
if name.lower() == competition_name.lower():
|
41 |
print(code)
|
42 |
return code
|
43 |
# Return None if no match is found.
|