summaryrefslogtreecommitdiff
path: root/jfr_playoff/dto.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-10-02 12:41:31 +0200
committeremkael <emkael@tlen.pl>2018-10-02 12:41:31 +0200
commit62fe5244beb1a859b86aae86d784a86b30d86ca9 (patch)
tree8b36d0d0bdd53a65586e4459d80fc77be9044c08 /jfr_playoff/dto.py
parent03ab8b041179daa2ed75966a3c2255e239f8fde7 (diff)
Fetching info about possible outcomes of matches in progress
Diffstat (limited to 'jfr_playoff/dto.py')
-rw-r--r--jfr_playoff/dto.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/jfr_playoff/dto.py b/jfr_playoff/dto.py
index 58b08c1..b1a3a5c 100644
--- a/jfr_playoff/dto.py
+++ b/jfr_playoff/dto.py
@@ -9,11 +9,13 @@ def coalesce(*arg):
class Team(object):
name = None
+ possible_name = None
score = 0.0
known_teams = 0
def __init__(self):
self.name = []
+ self.possible_name = []
def __unicode__(self):
return u'%s (%.1f)' % (coalesce(self.name, '<None>'), self.score)
@@ -29,6 +31,8 @@ class Match(object):
link = None
winner = None
loser = None
+ possible_winner = None
+ possible_loser = None
winner_matches = None
loser_matches = None