summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-01-22 14:34:16 +0100
committeremkael <emkael@tlen.pl>2018-01-22 14:34:16 +0100
commit192620204e437b73f3959a4b1dc78d0b22cbcc64 (patch)
tree9807e7eeea28b36cb539fc1383e998e4bf4b94a1 /jfr_playoff
parent8b9e982da0767714c8ef214fc4c7965280b15987 (diff)
Bugfix: team list for a match initialized early enough
Diffstat (limited to 'jfr_playoff')
-rw-r--r--jfr_playoff/data.py2
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