From 93e5bac872f3b4729ad36bea358cbbd5b0829c11 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 20 Feb 2019 21:13:21 +0100 Subject: Allowing to specify selected team in config before the match is published, without changing the bracket connections --- jfr_playoff/matchinfo.py | 1 + 1 file changed, 1 insertion(+) (limited to 'jfr_playoff/matchinfo.py') diff --git a/jfr_playoff/matchinfo.py b/jfr_playoff/matchinfo.py index 7b7af0b..b1fae4f 100644 --- a/jfr_playoff/matchinfo.py +++ b/jfr_playoff/matchinfo.py @@ -189,6 +189,7 @@ class MatchInfo: teams[i].name = match_teams teams[i].possible_name = possible_teams teams[i].known_teams = len([team for team in match_teams if team is not None]) + teams[i].selected_team = self.config['selected_teams'][i] if 'selected_teams' in self.config else -1 PlayoffLogger.get('matchinfo').info( 'config scores for match #%d: %s', self.info.id, teams) -- cgit v1.2.3