summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-12-28 00:25:58 +0100
committeremkael <emkael@tlen.pl>2019-12-28 00:25:58 +0100
commitbc728e4587ebe5b7ea1c21f7636b0ed1b786c64c (patch)
tree7485b0864a4bf6fc85ae5d3e13cbfee221260243
parent83f057d2321e47532683384ff8182c022d4abd07 (diff)
Code formatting
-rw-r--r--jfr_playoff/generator.py10
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