Fix : API /document/thumbnails using wrong method to get ''doc_ids' (#9097)

### What problem does this PR solve?

doc_ids is a list , should use request.args.getlist("doc_ids")

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
wenxuan.zhang
2025-07-30 12:56:59 +08:00
committed by GitHub
parent 523e61ae18
commit 30356b0b79

View File

@ -288,7 +288,7 @@ def docinfos():
@manager.route("/thumbnails", methods=["GET"]) # noqa: F821
# @login_required
def thumbnails():
doc_ids = request.args.get("doc_ids").split(",")
doc_ids = request.args.getlist("doc_ids")
if not doc_ids:
return get_json_result(data=False, message='Lack of "Document ID"', code=settings.RetCode.ARGUMENT_ERROR)