diff --git a/src/accounting/report/period/chooser.py b/src/accounting/report/period/chooser.py index 54c8614..223c112 100644 --- a/src/accounting/report/period/chooser.py +++ b/src/accounting/report/period/chooser.py @@ -79,7 +79,7 @@ class PeriodChooser: self.available_years: list[int] = [] """The available years.""" - if self.has_data is not None: + if self.has_data: today: date = date.today() self.has_last_month = start < date(today.year, today.month, 1) self.has_last_year = start.year < today.year