Skip to content

Commit

Permalink
Removing doubling parens
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 15, 2017
1 parent 70c27f8 commit 02966b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 02966b4

Please sign in to comment.