This commit is contained in:
doms9 2026-06-08 16:40:22 -04:00
parent 00000d99f0
commit 00000d98b8

View file

@ -146,13 +146,11 @@ async def get_events(cached_links: set[str]) -> list[dict[str, str]]:
elif cached_links & {link := urljoin(BASE_URL, href)}: elif cached_links & {link := urljoin(BASE_URL, href)}:
continue continue
if scr_elem := event.css_first("script"): if (scr_elem := event.css_first("script")) and (
if match := date_ptrn.search(scr_elem.text(strip=True)): match := date_ptrn.search(scr_elem.text(strip=True))
):
event_dt = Time.fromisoformat(match[0]).to_tz("EST") event_dt = Time.fromisoformat(match[0]).to_tz("EST")
else:
continue
elif event.css_first('span[id*="gameStatus-"]'): elif event.css_first('span[id*="gameStatus-"]'):
event_dt = now event_dt = now