summaryrefslogtreecommitdiff
path: root/jfr_playoff/dto.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-10-01 14:54:58 +0200
committeremkael <emkael@tlen.pl>2018-10-01 14:54:58 +0200
commit6f147d1b37de5c12b77c51ca2f80031cbec6ae20 (patch)
treee129a9e870043a1f659770baf757226c41765952 /jfr_playoff/dto.py
parent72e52cf8c572f262d022acaa1eb1aa65bccb099e (diff)
Refactoring team name list in matches as actual list
Diffstat (limited to 'jfr_playoff/dto.py')
-rw-r--r--jfr_playoff/dto.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/jfr_playoff/dto.py b/jfr_playoff/dto.py
index a88cd2b..ad70735 100644
--- a/jfr_playoff/dto.py
+++ b/jfr_playoff/dto.py
@@ -8,9 +8,12 @@ def coalesce(*arg):
class Team(object):
- name = ''
+ name = None
score = 0.0
+ def __init__(self):
+ self.name = []
+
def __unicode__(self):
return u'%s (%.1f)' % (coalesce(self.name, '<None>'), self.score)