diff options
author | MichaĆ Klichowicz <emkael@tlen.pl> | 2018-10-17 20:05:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 20:05:53 +0200 |
commit | 337ef4b3c426b392bfed8b9c4656d292645d9bb5 (patch) | |
tree | 1971b6ec8244df1cc093b3e5b8471c2dadd659e8 /jfr_playoff/dto.py | |
parent | 984540cd2dfba29c1dc9cbc43ab6fa4c85c7727b (diff) | |
parent | 9a2db36e92d12f2724801de3618e2794579ac302 (diff) |
Merge pull request #29 from emkael/v1.2.1v1.2.1
v1.2.1
Diffstat (limited to 'jfr_playoff/dto.py')
-rw-r--r-- | jfr_playoff/dto.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/jfr_playoff/dto.py b/jfr_playoff/dto.py index a88cd2b..8c04901 100644 --- a/jfr_playoff/dto.py +++ b/jfr_playoff/dto.py @@ -8,8 +8,16 @@ def coalesce(*arg): class Team(object): - name = '' + name = None + possible_name = None score = 0.0 + place = None + known_teams = 0 + + def __init__(self): + self.place = [] + self.name = [] + self.possible_name = [] def __unicode__(self): return u'%s (%.1f)' % (coalesce(self.name, '<None>'), self.score) @@ -25,8 +33,12 @@ class Match(object): link = None winner = None loser = None + possible_winner = None + possible_loser = None winner_matches = None loser_matches = None + winner_place = None + loser_place = None def __repr__(self): return (u'#%d (%s) %s [%s]' % ( |