From 8eb5112e5acff40a76a4e694ce87e64fc735d1d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Sch=C3=A4r?= Date: Wed, 18 Dec 2024 16:10:39 +0100 Subject: [PATCH] More linting (#2038) --- .../contrib/print_proxy/mapfish_print/toc_pages.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyramid_oereb/contrib/print_proxy/mapfish_print/toc_pages.py b/pyramid_oereb/contrib/print_proxy/mapfish_print/toc_pages.py index 2799289348..284b9748e7 100644 --- a/pyramid_oereb/contrib/print_proxy/mapfish_print/toc_pages.py +++ b/pyramid_oereb/contrib/print_proxy/mapfish_print/toc_pages.py @@ -6,7 +6,6 @@ class TocPages: - def __init__(self, extract): self.total_height = 842 self.header_height = self.compute_header() @@ -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 @@ -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 @@ -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