Skip to content

Commit 0416234

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e5f77ca commit 0416234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

silk/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _explain_query(connection, q, params):
5454

5555
# currently we cannot use explain() method
5656
# for queries other than `select`
57-
if re.match("^{} .*".format(prefix), q):
57+
if re.match(f"^{prefix} .*", q):
5858
# to avoid "EXPLAIN EXPLAIN", do not add prefix
5959
prefixed_query = q
6060
else:

0 commit comments

Comments
 (0)