summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-01-25 18:17:34 +0100
committeremkael <emkael@tlen.pl>2019-01-25 18:17:34 +0100
commitccfc3167131ae15751a793a04faab0c88cae4885 (patch)
tree236b79343f671c80e729925fbd8c10c4203b38fd /jfr_playoff
parent6e090383ea1b561af29e696f3f56950d5c4e9ad5 (diff)
parent9f39d6fec5ede281664be6e0566aac14d5970f0b (diff)
Merge branch 'master' of github.com:emkael/jfrteamy-playoff
Diffstat (limited to 'jfr_playoff')
-rw-r--r--jfr_playoff/generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py
index f1e2829..b151af1 100644
--- a/jfr_playoff/generator.py
+++ b/jfr_playoff/generator.py
@@ -47,7 +47,7 @@ class PlayoffGenerator(object):
match_grid,
self.get_swiss_links(),
leaderboard_table,
- self.get_leaderboard_caption_table() if leaderboard_table else '',
+ self.get_leaderboard_caption_table() if leaderboard_table or self.page['finishing_position_indicators'] else '',
self.p_temp.get(
'PAGE_BODY_FOOTER',
datetime.now().strftime('%Y-%m-%d o %H:%M:%S'))))
@@ -162,7 +162,7 @@ class PlayoffGenerator(object):
if len(team_name) != known_teams:
# we've added some predicted team names, so we add a header
team_name.insert(known_teams, self.p_temp.get('MATCH_POSSIBLE_TEAM_LIST_HEADER'))
- if (len(team_label) > 1) and (match.running == 0):
+ if (len(team_label) > 1) and (match.running == 0) and (known_teams > 0):
# and we add a header for matches that haven't started yet and have multiple options for teams
team_name.insert(0, self.p_temp.get('MATCH_TEAM_LIST_HEADER'))
# glue it all together