Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed May 10, 2018
1 parent 08ff644 commit 94b939d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def apply_limit_to_sql(cls, sql, limit, database):
return database.compile_sqla_query(qry)
elif LimitMethod.FORCE_LIMIT:
no_limit = re.sub(r'(?i)\s+LIMIT\s+\d+;?(\s|;)*$', '', sql)
return "{no_limit} LIMIT {limit}".format(**locals())
return '{no_limit} LIMIT {limit}'.format(**locals())
return sql

@staticmethod
Expand Down

0 comments on commit 94b939d

Please sign in to comment.