fix(diarization-ui): use index access instead of .get() on sqlite3.Row for user_prompt

sqlite3.Row does not support .get() — use direct key access with None check.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-27 10:00:55 +01:00
parent 53836b136f
commit 5ad50413a0

2
app.py
View File

@@ -348,7 +348,7 @@ def _process_analysis_job(job_id: int):
if not doc or not prm:
raise RuntimeError("Dokument oder Prompt nicht gefunden")
user_extra = (j.get("user_prompt") or "").strip()
user_extra = (j["user_prompt"] or "").strip() if j["user_prompt"] is not None else ""
llm_prompt = (
"Du bist ein präziser Assistent. Antworte auf Deutsch.\\n"
f"AUFTRAG:\\n{prm['prompt']}\\n"