From 192620204e437b73f3959a4b1dc78d0b22cbcc64 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 22 Jan 2018 14:34:16 +0100 Subject: Bugfix: team list for a match initialized early enough --- jfr_playoff/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jfr_playoff/data.py b/jfr_playoff/data.py index 0190810..6598f33 100644 --- a/jfr_playoff/data.py +++ b/jfr_playoff/data.py @@ -102,12 +102,12 @@ class PlayoffData(object): def get_config_match_teams(self, match): teams = [Team(), Team()] for i in range(0, 2): + match_teams = [] if isinstance(match['teams'][i], basestring): teams[i].name = match['teams'][i] elif isinstance(match['teams'][i], list): teams[i].name = '
'.join(match['teams'][i]) else: - match_teams = [] if 'winner' in match['teams'][i]: match_teams += [ self.match_info[winner_match].winner -- cgit v1.2.3