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:
2
app.py
2
app.py
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user