summaryrefslogtreecommitdiff
path: root/playoff.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-02-26 11:27:48 +0100
committeremkael <emkael@tlen.pl>2017-02-26 11:27:48 +0100
commitc10cb786bcb5abaa8ca74edcefee80e4bd5b5d73 (patch)
tree951a6b2f18a20b8c8185302faacabf9fbb89d258 /playoff.py
parent44916e4b5749854c5464c3d1d3c1d404d6067186 (diff)
Multiple teams in initial seeding allowed
Diffstat (limited to 'playoff.py')
-rw-r--r--playoff.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/playoff.py b/playoff.py
index 6169f5e..d5d9b1b 100644
--- a/playoff.py
+++ b/playoff.py
@@ -137,6 +137,8 @@ def get_match_info(match):
for i in range(0, 2):
if isinstance(match['teams'][i], basestring):
info.teams[i].name = match['teams'][i]
+ elif isinstance(match['teams'][i], list):
+ info.teams[i].name = '<br />'.join(match['teams'][i])
else:
teams = []
if 'winner' in match['teams'][i]: