From c2e717397a6e5c6a3d9ba9163e23f04a0286da61 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Thu, 30 May 2019 20:30:22 +0200 Subject: [PATCH] flake8 --- intrastat_product/report/intrastat_product_report_xls.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/intrastat_product/report/intrastat_product_report_xls.py b/intrastat_product/report/intrastat_product_report_xls.py index e2e5802..e333224 100644 --- a/intrastat_product/report/intrastat_product_report_xls.py +++ b/intrastat_product/report/intrastat_product_report_xls.py @@ -205,8 +205,9 @@ class IntrastatProductDeclarationXlsx(models.AbstractModel): wl = declaration._xls_declaration_line_fields() report = 'declaration' - title = self._get_title(declaration, report, format='normal') - title_short = self._get_title(declaration, report, format='short') + title = self._get_title(declaration, report, title_format='normal') + title_short = self._get_title(declaration, report, + title_format='short') sheet_name = title_short[:31].replace('/', '-') params = { @@ -218,9 +219,9 @@ class IntrastatProductDeclarationXlsx(models.AbstractModel): } return [params] - def _get_title(self, declaration, report, format='normal'): + def _get_title(self, declaration, report, title_format='normal'): title = declaration.year_month - if format == 'normal': + if title_format == 'normal': if report == 'computation': title += ' : ' + _('Computation Lines') else: