remove dead sites
misc. edits
This commit is contained in:
doms9 2025-12-16 14:27:05 -05:00
parent 474b3a19fc
commit 00000d92ad
6 changed files with 8 additions and 330 deletions

View file

@ -142,12 +142,13 @@ async def get_events(
live = []
start_ts = now.delta(minutes=-30).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"]:
if not start_ts <= v["event_ts"] <= end_ts:
continue
live.append({**v})