diff options
author | emkael <emkael@tlen.pl> | 2019-02-20 21:13:21 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-02-20 21:13:21 +0100 |
commit | 93e5bac872f3b4729ad36bea358cbbd5b0829c11 (patch) | |
tree | 9a2b0c4d8cfc62717ff1348582dc29901026c3e1 /jfr_playoff/matchinfo.py | |
parent | be06f2599161d30ab8a9587bd4db2a8422ebf933 (diff) |
Allowing to specify selected team in config before the match is published, without changing the bracket connections
Diffstat (limited to 'jfr_playoff/matchinfo.py')
-rw-r--r-- | jfr_playoff/matchinfo.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |