summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-09-28 00:56:34 +0200
committeremkael <emkael@tlen.pl>2018-09-28 00:56:34 +0200
commitafd01cbc03e1af7433eb959781b84f10e7051aa9 (patch)
treee80cd1821953a33d06922ad7fd72da2684d4a073 /jfr_playoff
parent34ca26ef666e69d2a5123d4ca37dde7845305a9e (diff)
parent5cf43985f96daa156d1b201ce4f5b8e925c7c711 (diff)
Merge branch 'position-boxes' into custom-positioning
Diffstat (limited to 'jfr_playoff')
-rw-r--r--jfr_playoff/generator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py
index 12a4365..c8cceab 100644
--- a/jfr_playoff/generator.py
+++ b/jfr_playoff/generator.py
@@ -190,7 +190,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['starting_position_indicators'] \
+ if 'starting_position_indicators' in self.page \
+ and self.page['starting_position_indicators'] \
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)