From 02966b45389cb764e76987583f1e819201d00749 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 14 Mar 2017 13:19:52 -0700 Subject: [PATCH] Removing doubling parens --- superset/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/utils.py b/superset/utils.py index 69b1249e8c89f..b2a724cf8dc38 100644 --- a/superset/utils.py +++ b/superset/utils.py @@ -419,7 +419,7 @@ def __exit__(self, type, value, traceback): def wrap_clause_in_parens(sql): """Wrap where/having clause with parenthesis if necessary""" if sql.strip(): - sql = '({})'.format(sql).replace('%', '%%') + sql = '({})'.format(sql) return sa.text(sql)