From e9b96eeba26d65a30d41f7e0a2a259e0b9630e76 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 1 May 2018 13:34:10 -0700 Subject: [PATCH] Fix typos from linting (#4918) Caused by https://github.com/apache/incubator-superset/pull/3847 Fixes https://github.com/apache/incubator-superset/issues/4915 --- superset/db_engine_specs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py index dac6f241f36bb..5587ba978ec47 100644 --- a/superset/db_engine_specs.py +++ b/superset/db_engine_specs.py @@ -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 @@ -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