mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 20:42:37 +01:00
DateType inherits from Float type
This commit is contained in:
parent
492cf38927
commit
629fc0087d
1 changed files with 1 additions and 3 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue