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})