Skip to content

Commit

Permalink
Fix multi-line statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth committed Mar 21, 2016
1 parent a9ba47f commit 48c8a90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dashed/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,10 @@ def grains(self):
Grain('Time Column', '{col}'),
Grain('week', "date_trunc('week', CAST({col} AS DATE))"),
Grain('month', "date_trunc('month', CAST({col} AS DATE))"),
Grain('week_ending', "date_add('day', 5, \
date_trunc('week', date_add('day', 1, CAST({col} AS DATE))))")
Grain('week_start', "date_add('day', -1, \
date_trunc('week', date_add('day', 1, CAST({col} AS DATE))))")
Grain("week_ending", "date_add('day', 5, "
"date_trunc('week', date_add('day', 1, CAST({col} AS DATE))))"),
Grain("week_start", "date_add('day', -1, "
"date_trunc('week', date_add('day', 1, CAST({col} AS DATE))))")
),
'mysql': (
Grain('Time Column', '{col}'),
Expand Down

0 comments on commit 48c8a90

Please sign in to comment.