Backend: WAL+busy_timeout, DB↔Datei-Reconcile beim Start, zentraler JSON-Parser (jsonio)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
team3
2026-06-12 07:54:57 +02:00
parent 38db80296c
commit c0b7d236bb
4 changed files with 69 additions and 40 deletions

View File

@@ -9,6 +9,7 @@ setup_logging()
from config import FRONTEND_DIST, STORAGE_DIR
from database import init_db, close_db
from generator import reconcile_guides
from routes import router
@@ -16,6 +17,7 @@ from routes import router
async def lifespan(app: FastAPI):
(STORAGE_DIR / "themen").mkdir(parents=True, exist_ok=True)
await init_db()
await reconcile_guides()
yield
await close_db()