From 51efecf4b5fa158b177674deac88ce561c567256 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Thu, 10 Oct 2024 11:05:03 +0800 Subject: [PATCH] trival (#2779) ### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/apps/document_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/apps/document_app.py b/api/apps/document_app.py index 83f7b3632..450b9ae93 100644 --- a/api/apps/document_app.py +++ b/api/apps/document_app.py @@ -213,7 +213,7 @@ def list_docs(): for doc_item in docs: if doc_item['thumbnail'] and not doc_item['thumbnail'].startswith(IMG_BASE64_PREFIX): - doc_item['thumbnail'] = f'/v1/document/image/{kb_id}-{doc_item['thumbnail']}' + doc_item['thumbnail'] = f"/v1/document/image/{kb_id}-{doc_item['thumbnail']}" return get_json_result(data={"total": tol, "docs": docs}) except Exception as e: