e
This commit is contained in:
parent
cc1ad3c3ab
commit
00000d9866
2 changed files with 1 additions and 4 deletions
|
|
@ -176,7 +176,7 @@ async def scrape(client: httpx.AsyncClient) -> None:
|
|||
)
|
||||
|
||||
if url:
|
||||
sport, event, ts = ev["sport"], ev["event"], ev["timestamp"]
|
||||
sport, event, ts = ev["sport"], ev["event"], ev["event_ts"]
|
||||
|
||||
tvg_id, logo = leagues.info(sport)
|
||||
|
||||
|
|
|
|||
|
|
@ -36,9 +36,6 @@ class Cache:
|
|||
except (FileNotFoundError, json.JSONDecodeError):
|
||||
return {}
|
||||
|
||||
if not data:
|
||||
return {}
|
||||
|
||||
if per_entry:
|
||||
return {k: v for k, v in data.items() if self.is_fresh(v, nearest_hr)}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue