e
This commit is contained in:
parent
12b1ea1a8c
commit
00000d9544
1 changed files with 4 additions and 1 deletions
|
|
@ -68,6 +68,9 @@ async def refresh_api_cache(
|
|||
|
||||
data = [event for sublist in results if sublist for event in sublist]
|
||||
|
||||
for ev in data:
|
||||
ev["ts"] = ev.pop("timestamp")
|
||||
|
||||
data[0]["timestamp"] = Time.now().timestamp()
|
||||
|
||||
return data
|
||||
|
|
@ -192,7 +195,7 @@ async def get_events(
|
|||
name = event["title"]
|
||||
league = event["league"]
|
||||
|
||||
if not (ts := event.get("timestamp")):
|
||||
if not (ts := event.get("ts")):
|
||||
continue
|
||||
|
||||
start_ts = int(str(ts)[:-3])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue