This commit is contained in:
doms9 2025-11-16 12:59:29 -05:00
parent 308d607660
commit 00000d9a4d
3 changed files with 29 additions and 23 deletions

View file

@ -64,11 +64,7 @@ async def refresh_html_cache(
h2_title = soup.css_first("h2").text(strip=True)
if sport_name := pattern.search(h2_title):
sport = sport_name[1]
else:
sport = "Event"
sport = sport_name[1] if (sport_name := pattern.search(h2_title)) else "Event"
events = {}
for row in soup.css("table#eventsTable tbody tr"):