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