mirror of
https://github.com/beetbox/beets.git
synced 2025-12-20 15:43:58 +01:00
reverts order of precisions from broadest to narrowest
This commit is contained in:
parent
ab7cc8f1ab
commit
713c00aea7
1 changed files with 2 additions and 2 deletions
|
|
@ -533,8 +533,8 @@ class Period(object):
|
|||
instants of time during January 2014.
|
||||
"""
|
||||
|
||||
precisions = ('day', 'month', 'year')
|
||||
date_formats = ('%Y-%m-%d', '%Y-%m', '%Y')
|
||||
precisions = ('year', 'month', 'day')
|
||||
date_formats = ('%Y', '%Y-%m', '%Y-%m-%d')
|
||||
|
||||
def __init__(self, date, precision):
|
||||
"""Create a period with the given date (a `datetime` object) and
|
||||
|
|
|
|||
Loading…
Reference in a new issue