Skip to content

Commit

Permalink
Fix typos from linting (#4918)
Browse files Browse the repository at this point in the history
Caused by #3847

Fixes #4915
  • Loading branch information
mistercrunch authored May 1, 2018
1 parent 13da5a8 commit 5f6a1ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ class BQEngineSpec(BaseEngineSpec):
def convert_dttm(cls, target_type, dttm):
tt = target_type.upper()
if tt == 'DATE':
return "{}'".format(dttm.strftime('%Y-%m-%d'))
return "'{}'".format(dttm.strftime('%Y-%m-%d'))
return "'{}'".format(dttm.strftime('%Y-%m-%d %H:%M:%S'))

@classmethod
Expand Down Expand Up @@ -1297,7 +1297,7 @@ class ImpalaEngineSpec(BaseEngineSpec):
def convert_dttm(cls, target_type, dttm):
tt = target_type.upper()
if tt == 'DATE':
return "{}'".format(dttm.strftime('%Y-%m-%d'))
return "'{}'".format(dttm.strftime('%Y-%m-%d'))
return "'{}'".format(dttm.strftime('%Y-%m-%d %H:%M:%S'))

@classmethod
Expand Down

0 comments on commit 5f6a1ce

Please sign in to comment.