From 629fc0087d4f23185d75bc3fcc23937840a3df15 Mon Sep 17 00:00:00 2001 From: Thomas Scholtes Date: Sun, 14 Sep 2014 16:17:12 +0200 Subject: [PATCH] DateType inherits from Float type --- beets/library.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/beets/library.py b/beets/library.py index 595eaa833..c6c48d7cc 100644 --- a/beets/library.py +++ b/beets/library.py @@ -61,12 +61,10 @@ class PathQuery(dbcore.FieldQuery): # Library-specific field types. -class DateType(types.Type): +class DateType(types.Float): # TODO representation should be `datetime` object # TODO distinguish beetween date and time types - sql = u'REAL' query = dbcore.query.DateQuery - null = 0.0 def format(self, value): return time.strftime(beets.config['time_format'].get(unicode),