Merge pull request 'Check pooled database connections before reusing them' (!137) from fix-db-disconnect into main
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

Reviewed-on: #137
This commit is contained in:
2025-09-26 15:15:26 +02:00

2
app.py
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")