Skip to content

Commit

Permalink
Fix monthly time grain in sqllite (#2380)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkyryliuk authored Mar 10, 2017
1 parent 2969cc9 commit 740624b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 740624b

Please sign in to comment.