This commit is contained in:
team3
2026-07-13 01:45:45 +02:00
parent 8cedcc87ec
commit 698bba6ccf
8 changed files with 82 additions and 31 deletions

View File

@@ -560,8 +560,8 @@ async def bauen(ctx: llm.Kontext) -> None:
offen = [b for b in _bausteine(ctx.topic) if b["status"] != "fertig"
or (db.one("SELECT stage FROM sections WHERE baustein_id=?", (b["id"],)) or
{"stage": "writer"})["stage"] != "done"]
await llm.alle(_karte(ctx, b) for b in offen)
await _kapitel_intros(ctx)
# Intros brauchen nur Kapitel+Ziele (keine Sections) → parallel zu den Karten
await llm.alle([*(_karte(ctx, b) for b in offen), _kapitel_intros(ctx)])
def kapitel_struktur(topic: str) -> list[dict]: