diff options
author | emkael <emkael@tlen.pl> | 2018-01-22 14:34:16 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-01-22 14:34:16 +0100 |
commit | 192620204e437b73f3959a4b1dc78d0b22cbcc64 (patch) | |
tree | 9807e7eeea28b36cb539fc1383e998e4bf4b94a1 /jfr_playoff/data.py | |
parent | 8b9e982da0767714c8ef214fc4c7965280b15987 (diff) |
Bugfix: team list for a match initialized early enough
Diffstat (limited to 'jfr_playoff/data.py')
-rw-r--r-- | jfr_playoff/data.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 = '<br />'.join(match['teams'][i]) else: - match_teams = [] if 'winner' in match['teams'][i]: match_teams += [ self.match_info[winner_match].winner |