Moved the shortcut named periods from the "accounting.report.period.period" module to the "accounting.report.period.periods" module.

This commit is contained in:
2023-03-09 19:44:53 +08:00
parent bc792c145f
commit 900d60d1ae
4 changed files with 174 additions and 150 deletions

View File

@ -19,10 +19,11 @@
"""
import calendar
import re
from datetime import date
import typing as t
from datetime import date
from .period import Period, ThisMonth, LastMonth, SinceLastMonth, ThisYear, \
from .period import Period
from .periods import ThisMonth, LastMonth, SinceLastMonth, ThisYear, \
LastYear, Today, Yesterday, AllTime
DATE_SPEC_RE: str = r"(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?"