From 740624ba01edcfa305d6ff0a2676d413e59377f4 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 10 Mar 2017 11:57:17 -0800 Subject: [PATCH] Fix monthly time grain in sqllite (#2380) --- superset/db_engine_specs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py index 497e476bc58b3..6b9efc3bcd421 100644 --- a/superset/db_engine_specs.py +++ b/superset/db_engine_specs.py @@ -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