fix: show correct "Game X of 7" for future playoff dates
Enrich raw score-endpoint games with gameNumber from the series cache before parsing. The score API omits gameNumber and its seriesStatus reflects current wins, so all future games in a series computed the same number. Now we cross-reference by game id against the cached series-detail endpoint which includes the correct gameNumber per game. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -158,8 +158,6 @@ def series_badges(game):
|
||||
|
||||
def series_summary(game):
|
||||
"""Short line rendered above the card, e.g. 'Game 2 of 7'."""
|
||||
if game.get("gameState") == "FUT":
|
||||
return ""
|
||||
state = series_state(game.get("seriesStatus", {}))
|
||||
return f"Game {_game_number(game, state)} of 7"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user