From ec257a4b57fcb385ccb941833b53b71b6aba7de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 9 Mar 2023 20:13:15 +0800 Subject: [PATCH] Renamed the "accounting.report.period.periods" module to "accounting.report.period.shortcuts", to be clear. --- src/accounting/report/period/chooser.py | 2 +- src/accounting/report/period/parser.py | 2 +- src/accounting/report/period/{periods.py => shortcuts.py} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/accounting/report/period/{periods.py => shortcuts.py} (100%) diff --git a/src/accounting/report/period/chooser.py b/src/accounting/report/period/chooser.py index 18ec81a..54c8614 100644 --- a/src/accounting/report/period/chooser.py +++ b/src/accounting/report/period/chooser.py @@ -25,7 +25,7 @@ from datetime import date from accounting.models import Transaction from .period import Period -from .periods import ThisMonth, LastMonth, SinceLastMonth, ThisYear, \ +from .shortcuts import ThisMonth, LastMonth, SinceLastMonth, ThisYear, \ LastYear, Today, Yesterday, AllTime, TemplatePeriod, YearPeriod diff --git a/src/accounting/report/period/parser.py b/src/accounting/report/period/parser.py index d2acc00..23a34c1 100644 --- a/src/accounting/report/period/parser.py +++ b/src/accounting/report/period/parser.py @@ -23,7 +23,7 @@ import typing as t from datetime import date from .period import Period -from .periods import ThisMonth, LastMonth, SinceLastMonth, ThisYear, \ +from .shortcuts import ThisMonth, LastMonth, SinceLastMonth, ThisYear, \ LastYear, Today, Yesterday, AllTime DATE_SPEC_RE: str = r"(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?" diff --git a/src/accounting/report/period/periods.py b/src/accounting/report/period/shortcuts.py similarity index 100% rename from src/accounting/report/period/periods.py rename to src/accounting/report/period/shortcuts.py