summaryrefslogtreecommitdiff
path: root/jfr_playoff/data.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-02-20 22:59:46 +0100
committeremkael <emkael@tlen.pl>2018-02-20 22:59:46 +0100
commit95270b1f32ff946879cc9d8d7d4fe5f33b3a2868 (patch)
tree662e5126f2b97394b90e72cd15d1c7e97dd48943 /jfr_playoff/data.py
parent7baf404cfb4733c6512978dc011090fc0230744b (diff)
If swiss is still not finished, display a running link
Diffstat (limited to 'jfr_playoff/data.py')
-rw-r--r--jfr_playoff/data.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/jfr_playoff/data.py b/jfr_playoff/data.py
index 83f5d6c..7f29bb2 100644
--- a/jfr_playoff/data.py
+++ b/jfr_playoff/data.py
@@ -138,7 +138,8 @@ class PlayoffData(object):
return [{
'link': self.get_swiss_link(event),
'position': event['position'],
- 'label': event['label'] if 'label' in event else None
+ 'label': event['label'] if 'label' in event else None,
+ 'finished': TournamentInfo(event, self.database).is_finished()
} for event in self.swiss]
def get_dimensions(self):