diff options
-rw-r--r-- | jfr_playoff/generator.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py index f2dc22b..062ccab 100644 --- a/jfr_playoff/generator.py +++ b/jfr_playoff/generator.py @@ -52,7 +52,11 @@ class PlayoffGenerator(object): match_grid, self.get_swiss_links(), leaderboard_table, - self.get_leaderboard_caption_table() if leaderboard_table or ('finishing_position_indicators' in self.page and self.page['finishing_position_indicators']) else '', + self.get_leaderboard_caption_table() \ + if leaderboard_table or ( + 'finishing_position_indicators' in self.page + and self.page['finishing_position_indicators']) \ + else '', self.p_temp.get( 'PAGE_BODY_FOOTER', datetime.now().strftime('%Y-%m-%d o %H:%M:%S')))) @@ -319,8 +323,8 @@ class PlayoffGenerator(object): finishing_places = set() for phase in grid: grid_x = col_no * self.page['width'] + (col_no + 1) * self.page['margin'] \ - if self.page.get('starting_position_indicators', None) \ - else col_no * (self.page['width'] + self.page['margin']) + if self.page.get('starting_position_indicators', None) \ + else col_no * (self.page['width'] + self.page['margin']) grid_boxes += self.get_phase_header(phase, grid_x) match_height = canvas_size[1] / len(phase.matches) row_no = 0 |