From 32c27d7c076f0b118f729f769bc15ea0e5329fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 5 Mar 2023 12:06:16 +0800 Subject: [PATCH] Fixed an error finding the end of month in the __get_month_spec method of the Period utility. --- src/accounting/report/period.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accounting/report/period.py b/src/accounting/report/period.py index f4c4857..768d98c 100644 --- a/src/accounting/report/period.py +++ b/src/accounting/report/period.py @@ -176,7 +176,7 @@ class Period: :return: The period specification as a month range. :raise ValueError: The period is not a month range. """ - if self.start.day != 1 or self.end != month_end(self.end): + if self.start.day != 1 or self.end != _month_end(self.end): raise ValueError if self.start.year == self.end.year \ and self.start.month == self.end.month: