Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fix(#29181): convert uuid route param to str in DatasetDocumentListApi.get (#29207)

yodhcn4b8bd4b89115
diff --git a/api/controllers/console/datasets/datasets_document.py b/api/controllers/console/datasets/datasets_document.py
index 2663c939bc5..8ac285e9f89 100644
--- a/api/controllers/console/datasets/datasets_document.py
+++ b/api/controllers/console/datasets/datasets_document.py
@@ -201,8 +201,9 @@ class DatasetDocumentListApi(Resource):
@setup_required
@login_required
@account_initialization_required
- def get(self, dataset_id: str):
+ def get(self, dataset_id):
current_user, current_tenant_id = current_account_with_tenant()
+ dataset_id = str(dataset_id)
page = request.args.get("page", default=1, type=int)
limit = request.args.get("limit", default=20, type=int)
search = request.args.get("keyword", default=None, type=str)