diff options
author | emkael <emkael@tlen.pl> | 2017-02-27 14:44:29 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-02-27 14:44:29 +0100 |
commit | a5eb585bc5192268743776db8e4ee24e4fd903ba (patch) | |
tree | 5ee2a84de5c99ea2220185af15d1d862de260805 /playoff.py | |
parent | 564b630b2699eb57524dd332c3bd4a0f910044ca (diff) |
Including dummies in row height calculation
Diffstat (limited to 'playoff.py')
-rw-r--r-- | playoff.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -216,7 +216,7 @@ for positions, teams in leaderboard_teams.iteritems(): leaderboard[position-1] = table_team[0] grid_columns = len(settings['phases']) -grid_rows = max([len(phase['matches']) for phase in settings['phases']]) +grid_rows = max([len(phase['matches']) + len(phase['dummies']) if 'dummies' in phase else len(phase['matches']) for phase in settings['phases']]) grid_height = grid_rows * (settings['page']['height'] + settings['page']['margin']) - settings['page']['margin'] grid_width = grid_columns * (settings['page']['width'] + settings['page']['margin']) - settings['page']['margin'] |