фикс8
This commit is contained in:
@@ -239,7 +239,7 @@ def fetch_match_live_data(match_id: int) -> dict:
|
|||||||
scores = soup.find("div", class_="score__container").find_all("div", class_="score__item")
|
scores = soup.find("div", class_="score__container").find_all("div", class_="score__item")
|
||||||
score1 = parse_score(scores[0].text) if len(scores) > 0 else None
|
score1 = parse_score(scores[0].text) if len(scores) > 0 else None
|
||||||
score2 = parse_score(scores[2].text) if len(scores) > 2 else None
|
score2 = parse_score(scores[2].text) if len(scores) > 2 else None
|
||||||
return [{"status": "live", "home_score": score1, "away_score": score2}]
|
return {"status": "live", "home_score": score1, "away_score": score2}
|
||||||
|
|
||||||
raise NotImplementedError("Implement fetch_match_live_data(match_id) by yourself")
|
raise NotImplementedError("Implement fetch_match_live_data(match_id) by yourself")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user