params-fix
All checks were successful
Deploy on push / deploy (push) Successful in 35s

This commit is contained in:
Untone 2024-04-09 17:55:07 +03:00
parent 3fd94dc0fa
commit 7be4642f5d

View File

@ -100,7 +100,7 @@ def after_cursor_execute(conn, cursor, statement, parameters, context, executema
compiled_parameters = context.compiled.params
if compiled_statement:
elapsed = time.time() - conn.query_start_time
query = compiled_statement % compiled_parameters
query = compiled_statement.format(*compiled_parameters)
if elapsed > 1 and conn.last_statement != query:
conn.last_statement = query