Compare commits

...

2 Commits

Author SHA1 Message Date
0011ac9cb9 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
2025-09-26 15:15:26 +02:00
4c88ee4c06 Check pooled database connections before reusing them
All checks were successful
continuous-integration/drone/pr Build is passing
Fixes #43
2025-09-19 18:18:19 +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")