summaryrefslogtreecommitdiff
path: root/jfr_playoff/dto.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-10-17 19:48:53 +0200
committeremkael <emkael@tlen.pl>2018-10-17 19:48:53 +0200
commit69faf075c1ddf5e9d5a77fb1bba245fd567bd348 (patch)
treefaf676b535a417d188b5ab0e922f7e17c78514f5 /jfr_playoff/dto.py
parent524d09e5cd6d1e026d706aa8c0eac346c26c6433 (diff)
parent17b67eec50d428383406d4309bc7506fd22015db (diff)
Merge branch 'position-boxes' into v1.2.1
Diffstat (limited to 'jfr_playoff/dto.py')
-rw-r--r--jfr_playoff/dto.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/jfr_playoff/dto.py b/jfr_playoff/dto.py
index a88cd2b..1bc153c 100644
--- a/jfr_playoff/dto.py
+++ b/jfr_playoff/dto.py
@@ -10,6 +10,10 @@ def coalesce(*arg):
class Team(object):
name = ''
score = 0.0
+ place = None
+
+ def __init__(self):
+ self.place = []
def __unicode__(self):
return u'%s (%.1f)' % (coalesce(self.name, '<None>'), self.score)
@@ -27,6 +31,8 @@ class Match(object):
loser = None
winner_matches = None
loser_matches = None
+ winner_place = None
+ loser_place = None
def __repr__(self):
return (u'#%d (%s) %s [%s]' % (