diff --git a/app/playoff.py b/app/playoff.py index 166346e..461a63d 100644 --- a/app/playoff.py +++ b/app/playoff.py @@ -158,6 +158,8 @@ 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" diff --git a/tests/test_playoff_series.py b/tests/test_playoff_series.py index 6284503..e36a2c5 100644 --- a/tests/test_playoff_series.py +++ b/tests/test_playoff_series.py @@ -181,6 +181,10 @@ class TestSeriesSummary: ) assert series_summary(game) == "Game 2 of 7" + def test_fut_game_suppresses_summary(self): + game = make_playoff_game(top_wins=1, bottom_wins=1, game_state="FUT") + assert series_summary(game) == "" + class TestIsPinned: def test_game7_live_is_pinned(self):