summaryrefslogtreecommitdiff
path: root/jfr_playoff/generator.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-09-28 01:10:35 +0200
committeremkael <emkael@tlen.pl>2018-09-28 01:10:35 +0200
commitdd15c7119f5085e03c438ea7ee5bf70695de1af5 (patch)
tree155770848cb68d1c71ae51b9e27db9cdabbf78b7 /jfr_playoff/generator.py
parentafd01cbc03e1af7433eb959781b84f10e7051aa9 (diff)
parent2b906f5038565f718e589cd70c24f4614fd0f4cf (diff)
Merge branch 'devel' into position-boxes
Diffstat (limited to 'jfr_playoff/generator.py')
-rw-r--r--jfr_playoff/generator.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py
index c8cceab..1daae1c 100644
--- a/jfr_playoff/generator.py
+++ b/jfr_playoff/generator.py
@@ -57,6 +57,7 @@ class PlayoffGenerator(object):
team_label = ' / '.join([
self.data.get_shortname(name) for name in
team.name.split('<br />')])
+ team_label = team_label[:30] + (team_label[30:] and '(...)')
team_html = self.p_temp.get(
'MATCH_TEAM_LINK',
match.link, team.name, team_label) \
@@ -284,7 +285,8 @@ class PlayoffGenerator(object):
event_label = self.p_temp.get('SWISS_DEFAULT_LABEL', event['position'])
if 'label' in event and event['label'] is not None:
event_label = event['label']
- info.append((self.p_temp.get('SWISS_LINK') \
+ info.append((self.p_temp.get('SWISS_LINK',
+ event['link'], event_label) \
if event['finished'] \
else self.p_temp.get(
'SWISS_RUNNING_LINK',