This commit is contained in:
doms9 2025-11-19 18:58:52 -05:00
parent 7b761c7189
commit 00000d9fe2
6 changed files with 222 additions and 56 deletions

View file

@ -58,7 +58,7 @@ async def refresh_html_cache(
url: str,
sport: str,
now_ts: float,
) -> dict[str, str | float]:
) -> dict[str, dict[str, str | float]]:
try:
r = await client.get(url)
@ -73,9 +73,7 @@ async def refresh_html_cache(
events = {}
for row in soup.css("table#eventsTable tbody tr"):
a_tag = row.css_first("td a")
if not a_tag:
if not (a_tag := row.css_first("td a")):
continue
event = a_tag.text(strip=True)