e
This commit is contained in:
parent
308d607660
commit
00000d9a4d
3 changed files with 29 additions and 23 deletions
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue