Update app.py
Browse files
app.py
CHANGED
|
@@ -335,7 +335,7 @@ async def fetch_nba_fixtures_for_date(ymd: str):
|
|
| 335 |
j = await fetch_json(url, client)
|
| 336 |
events = (j or {}).get("events", []) if isinstance(j, dict) else []
|
| 337 |
for ev in events:
|
| 338 |
-
comps = (ev.get("competitions
|
| 339 |
if comps:
|
| 340 |
comps0 = comps[0]
|
| 341 |
comps_list = comps0.get("competitors") or []
|
|
|
|
| 335 |
j = await fetch_json(url, client)
|
| 336 |
events = (j or {}).get("events", []) if isinstance(j, dict) else []
|
| 337 |
for ev in events:
|
| 338 |
+
comps = (ev.get("competitions"), None) or ev.get("competitions") or []
|
| 339 |
if comps:
|
| 340 |
comps0 = comps[0]
|
| 341 |
comps_list = comps0.get("competitors") or []
|