Skip to content

Commit

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

Fixes apache#4915
  • Loading branch information
mistercrunch authored May 1, 2018
1 parent 1c3678b commit 26fd30d
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 26fd30d

Please sign in to comment.