fix: correct linters

(cherry picked from commit 9c529c61bb)
This commit is contained in:
Ernesto Ruiz
2022-10-25 22:35:37 -06:00
committed by Mergify
parent 5acc9be5c9
commit 440e20859f

View File

@@ -118,7 +118,9 @@ def get_period(posting_date, filters):
elif filters.range == "Monthly":
period = _(str(months[posting_date.month - 1])) + " " + str(posting_date.year)
elif filters.range == "Quarterly":
period = _("Quarter {0} {1}").format(str(((posting_date.month - 1) // 3) + 1), str(posting_date.year))
period = _("Quarter {0} {1}").format(
str(((posting_date.month - 1) // 3) + 1), str(posting_date.year)
)
else:
year = get_fiscal_year(posting_date, company=filters.company)
period = str(year[2])