From bc728e4587ebe5b7ea1c21f7636b0ed1b786c64c Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 28 Dec 2019 00:25:58 +0100 Subject: Code formatting --- jfr_playoff/generator.py | 10 +++++++--- 1 file 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 -- cgit v1.2.3