e
This commit is contained in:
parent
7b761c7189
commit
00000d9fe2
6 changed files with 222 additions and 56 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue