commented-fix
All checks were successful
deploy / deploy (push) Successful in 1m29s

This commit is contained in:
2023-12-24 20:46:50 +03:00
parent 8c67438d01
commit f9abe421aa
2 changed files with 12 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
import math
import time
import logging
@@ -27,7 +28,7 @@ def before_cursor_execute(conn, cursor, statement, parameters, context, executem
@event.listens_for(Engine, "after_cursor_execute")
def after_cursor_execute(conn, cursor, statement, parameters, context, executemany):
total = time.time() - conn.info["query_start_time"].pop(-1)
logger.debug(f" Finished in {total*1000} ms ")
logger.debug(f" Finished in {math.floor(total*10000)/10} ms ")
engine = create_engine(DB_URL, echo=False, pool_size=10, max_overflow=20)