Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
Minor style fix
  • Loading branch information
joshwalters committed May 24, 2016
1 parent 7360fd2 commit 6897c38
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions caravel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,8 @@ def grains(self):
if self.sqlalchemy_uri.startswith(db_type):
return grains

def dttm_converter(self, dttm, tf=None):
def dttm_converter(self, dttm, tf='%Y-%m-%d %H:%M:%S.%f'):
"""Returns a string that the database flavor understands as a date"""
if tf is None or tf == '':
tf = '%Y-%m-%d %H:%M:%S.%f'
default = "'{}'".format(dttm.strftime(tf))
iso = dttm.isoformat()
d = {
Expand Down

0 comments on commit 6897c38

Please sign in to comment.