diff options
-rw-r--r-- | jfr_playoff/generator.py | 4 |
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 |