[fix] Fixed tuple unpacking and moved UUID conversion into the try block.

This commit is contained in:
lanceyq
2026-03-04 18:01:56 +08:00
parent 13dce5e265
commit 420f391f3c
2 changed files with 4 additions and 4 deletions

View File

@@ -423,7 +423,7 @@ def get_rag_user_kb_total_chunk(
# 通过 App 关联取该 workspace 下所有 end_user_id
end_user_ids = [
str(u.id) for u in db.query(EndUser.id)
str(eid) for (eid,) in db.query(EndUser.id)
.join(App, EndUser.app_id == App.id)
.filter(App.workspace_id == workspace_id)
.all()