Compare commits

...
Author SHA1 Message Date
Brain 4c88ee4c06 Check pooled database connections before reusing them
continuous-integration/drone/pr Build is passing
Fixes #43
2025-09-19 18:18:19 +02:00
+1 -1
View File
@@ -38,7 +38,7 @@ app.config["KI_LDAP_AUTH_PASSWORD"] = os.getenv("KI_LDAP_AUTH_PASSWORD")
app.config["KI_LDAP_BASE_DN"] = os.getenv("KI_LDAP_BASE_DN")
CORS(app)
db = SQLAlchemy(app, session_options={"future": True})
db = SQLAlchemy(app, session_options={"future": True}, engine_options={"pool_pre_ping": True})
migrate = Migrate(app, db, compare_type=True)
app.logger.info("Hello from KI")