This commit is contained in:
doms9 2025-12-15 21:03:12 -05:00
parent b366541607
commit 00000d939d
2 changed files with 3 additions and 4 deletions

View file

@ -142,13 +142,12 @@ async def get_events(
live = []
start_ts = now.delta(hours=-1).timestamp()
end_ts = now.delta(minutes=5).timestamp()
for k, v in events.items():
if cached_keys & {k}:
continue
if not start_ts <= v["event_ts"] <= end_ts:
if not start_ts <= v["event_ts"]:
continue
live.append({**v})

View file

@ -82,8 +82,8 @@ async def get_events(
streams: list[dict[str, str]] = ev["streams"]
for z, stream in enumerate(streams, start=1):
key = f"[{sport}] {name} {z} ({TAG})"
for stream in streams:
key = f"[{sport}] {name} ({TAG})"
if cached_keys & {key}:
continue