Kevin Hu commited on
Commit
3f2f804
·
1 Parent(s): d6ada66

trival (#2779)

Browse files

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Files changed (1) hide show
  1. api/apps/document_app.py +1 -1
api/apps/document_app.py CHANGED
@@ -213,7 +213,7 @@ def list_docs():
213
 
214
  for doc_item in docs:
215
  if doc_item['thumbnail'] and not doc_item['thumbnail'].startswith(IMG_BASE64_PREFIX):
216
- doc_item['thumbnail'] = f'/v1/document/image/{kb_id}-{doc_item['thumbnail']}'
217
 
218
  return get_json_result(data={"total": tol, "docs": docs})
219
  except Exception as e:
 
213
 
214
  for doc_item in docs:
215
  if doc_item['thumbnail'] and not doc_item['thumbnail'].startswith(IMG_BASE64_PREFIX):
216
+ doc_item['thumbnail'] = f"/v1/document/image/{kb_id}-{doc_item['thumbnail']}"
217
 
218
  return get_json_result(data={"total": tol, "docs": docs})
219
  except Exception as e: