Skip to content

Commit

Permalink
More linting (#2038)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschaer committed Dec 18, 2024
1 parent 7dd2b88 commit 8eb5112
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pyramid_oereb/contrib/print_proxy/mapfish_print/toc_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class TocPages:

def __init__(self, extract):
self.total_height = 842
self.header_height = self.compute_header()
Expand Down Expand Up @@ -76,7 +75,9 @@ def compute_d3(self):
total_size += (
blank_space_above + not_concerned_themes_title_height + blank_space_between
)
total_size += len(self.extract["NotConcernedTheme"]) * not_concerned_themes_item_height
total_size += (
len(self.extract["NotConcernedTheme"]) * not_concerned_themes_item_height
)
if total_size > self.d3_height:
log.debug(f"d3 total_size: {total_size}")
return total_size
Expand All @@ -95,9 +96,8 @@ def compute_d5(self):
total_size = 0
theme_without_data_item_height = 12 # themelist.jrxml
total_size += (
(len(self.extract["ThemeWithoutData"]))
* theme_without_data_item_height
)
len(self.extract["ThemeWithoutData"])
) * theme_without_data_item_height
if total_size > self.d5_height:
log.debug(f"d5 total_size: {total_size}")
return total_size
Expand All @@ -119,7 +119,7 @@ def compute_d6_left(self):

space_between_info_and_disclaimer = 6 # general_info_and_disclaimer.jrxml
total_size += space_between_info_and_disclaimer

# LandRegister-Disclaimer (1 title, 1 item)
land_register_disclaimer_title_line_height = (
8 # general_info_and_disclaimer.jrxml
Expand Down

0 comments on commit 8eb5112

Please sign in to comment.