From 8272cf20a6c207cd362e8d41cec2c086529b271e Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 12 Feb 2023 15:47:43 +0100 Subject: Correctly compiling list of possible teams when `place` teams are mixed with `winner`/`loser` teams Fixes #53 --- jfr_playoff/data/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jfr_playoff') diff --git a/jfr_playoff/data/info.py b/jfr_playoff/data/info.py index dd2d385..7b2b9f4 100644 --- a/jfr_playoff/data/info.py +++ b/jfr_playoff/data/info.py @@ -203,10 +203,10 @@ class MatchInfo(ResultInfo): for place in self.config['teams'][i]['place']] if self._starting_positions_certain: match_teams += placed_teams - possible_teams = [None] * len(placed_teams) + possible_teams += [None] * len(placed_teams) else: possible_teams += placed_teams - match_teams = [None] * len(placed_teams) + match_teams += [None] * len(placed_teams) teams[i].name = match_teams teams[i].possible_name = possible_teams teams[i].unknown_teams = len([team for team in match_teams if team is None]) -- cgit v1.2.3