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 and timifasubaa committed May 31, 2018
1 parent 292da61 commit e9b96ee
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 e9b96ee

Please sign in to comment.