From 0c3aa4348b96b4e1fb176a69a60a1c2c49c8e422 Mon Sep 17 00:00:00 2001 From: Wolf Beckmann Date: Fri, 27 Mar 2026 10:11:29 +0100 Subject: [PATCH] fix(diarization-ui): fix dict literal inside f-string expression in view_document MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit {{...}} inside {expression} is invalid Python — use single braces for dict literals. Co-Authored-By: Claude Sonnet 4.6 --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index b1ba828..f0d7c69 100644 --- a/app.py +++ b/app.py @@ -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}});