Spaces:
Sleeping
Sleeping
Update openboxing_api.py
Browse files- openboxing_api.py +1 -1
openboxing_api.py
CHANGED
|
@@ -15,7 +15,7 @@ def get_all_champions():
|
|
| 15 |
return response.json()
|
| 16 |
return []
|
| 17 |
|
| 18 |
-
def find_champion_by_name(
|
| 19 |
"""
|
| 20 |
Search for a fighter/champion by name.
|
| 21 |
Returns the first match dict or None if not found.
|
|
|
|
| 15 |
return response.json()
|
| 16 |
return []
|
| 17 |
|
| 18 |
+
def find_champion_by_name(all_champs, name: str):
|
| 19 |
"""
|
| 20 |
Search for a fighter/champion by name.
|
| 21 |
Returns the first match dict or None if not found.
|