Parcourir la source

trival (#2779)

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.13.0
Kevin Hu il y a 1 an
Parent
révision
51efecf4b5
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      api/apps/document_app.py

+ 1
- 1
api/apps/document_app.py Voir le fichier

@@ -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:

Chargement…
Annuler
Enregistrer