From 26b70bb6251a9ae85d26ca9269c626b8453c1449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 8 Mar 2023 14:44:18 +0800 Subject: [PATCH] Fixed the logic for all-time in the period_spec function in the "accounting.report.reports.utils.csv_export" module. --- src/accounting/report/reports/utils/csv_export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounting/report/reports/utils/csv_export.py b/src/accounting/report/reports/utils/csv_export.py index 0a8f789..078388e 100644 --- a/src/accounting/report/reports/utils/csv_export.py +++ b/src/accounting/report/reports/utils/csv_export.py @@ -65,10 +65,10 @@ def period_spec(period: Period) -> str: """ start: str | None = __get_start_str(period.start) end: str | None = __get_end_str(period.end) - if start == end: - return start if period.start is None and period.end is None: return "all-time" + if start == end: + return start if period.start is None: return f"until-{end}" if period.end is None: