Spaces:
Sleeping
Sleeping
Update openboxing_api.py
Browse files- openboxing_api.py +2 -2
openboxing_api.py
CHANGED
|
@@ -11,7 +11,7 @@ def get_all_champions():
|
|
| 11 |
"""
|
| 12 |
url = f"{BASE_URL}/champions/all.json"
|
| 13 |
response = requests.get(url)
|
| 14 |
-
print(response.
|
| 15 |
if response.status_code == 200:
|
| 16 |
return response.json()
|
| 17 |
return []
|
|
@@ -39,7 +39,7 @@ def get_bouts_for_champion(champion_id: int):
|
|
| 39 |
"""
|
| 40 |
url = f"{BASE_URL}/bouts/all.json"
|
| 41 |
response = requests.get(url)
|
| 42 |
-
print(reponse.
|
| 43 |
if response.status_code != 200:
|
| 44 |
return []
|
| 45 |
|
|
|
|
| 11 |
"""
|
| 12 |
url = f"{BASE_URL}/champions/all.json"
|
| 13 |
response = requests.get(url)
|
| 14 |
+
print(response.text)
|
| 15 |
if response.status_code == 200:
|
| 16 |
return response.json()
|
| 17 |
return []
|
|
|
|
| 39 |
"""
|
| 40 |
url = f"{BASE_URL}/bouts/all.json"
|
| 41 |
response = requests.get(url)
|
| 42 |
+
print(reponse.text)
|
| 43 |
if response.status_code != 200:
|
| 44 |
return []
|
| 45 |
|