Release storico UDC e picking list
This commit is contained in:
@@ -19,6 +19,16 @@ from sqlalchemy import text
|
||||
from sqlalchemy.ext.asyncio import create_async_engine
|
||||
from sqlalchemy.pool import NullPool
|
||||
|
||||
try:
|
||||
import pyodbc
|
||||
|
||||
# The desktop app opens short-lived SQL connections from a background
|
||||
# asyncio loop. ODBC pooling can keep native handles alive for a while after
|
||||
# the GUI closes, which is especially visible with pythonw.
|
||||
pyodbc.pooling = False
|
||||
except Exception:
|
||||
pyodbc = None # type: ignore[assignment]
|
||||
|
||||
try:
|
||||
import orjson as _json
|
||||
|
||||
|
||||
Reference in New Issue
Block a user