Fix monthly time grain in sqllite (#2380)

This commit is contained in:
Bogdan 2017-03-10 11:57:17 -08:00 committed by GitHub
parent 2969cc9993
commit 740624ba01

View File

@ -193,7 +193,7 @@ class SqliteEngineSpec(BaseEngineSpec):
Grain("week", _('week'),
"DATE({col}, -strftime('%w', {col}) || ' days')"),
Grain("month", _('month'),
"DATE({col}, -strftime('%d', {col}) || ' days')"),
"DATE({col}, -strftime('%d', {col}) || ' days', '+1 day')"),
)
@classmethod