fix(diarization-ui): fix dict literal inside f-string expression in view_document

{{...}} inside {expression} is invalid Python — use single braces for dict literals.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-27 10:11:29 +01:00
parent 5bed920266
commit 0c3aa4348b

2
app.py
View File

@@ -815,7 +815,7 @@ window.renameDoc = async function() {{
window.postForm('/document/{doc_id}/rename', {{title:v}});
}};
window.moveDoc = async function() {{
const options = {json.dumps([{{"value": p['id'], "label": p['name']}} for p in projects], ensure_ascii=False)};
const options = {json.dumps([{"value": p['id'], "label": p['name']} for p in projects], ensure_ascii=False)};
const v = await window.uiSelect('In Projekt verschieben', options, 'Projekt wählen');
if (v===null || v==='') return;
window.postForm('/document/{doc_id}/move', {{project_id:v}});