From 713c00aea75fb14ae00d4a41c4d17d3b79bba062 Mon Sep 17 00:00:00 2001 From: discopatrick Date: Thu, 20 Apr 2017 13:20:22 +0100 Subject: [PATCH] reverts order of precisions from broadest to narrowest --- beets/dbcore/query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beets/dbcore/query.py b/beets/dbcore/query.py index 1c5c58e53..0ed5f8935 100644 --- a/beets/dbcore/query.py +++ b/beets/dbcore/query.py @@ -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