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: error Class 'builtins.list' is not mapped (#1710)

Pascal M5d10cf0fe6b2
diff --git a/api/core/indexing_runner.py b/api/core/indexing_runner.py
index 8132f2a05db..d84899550ab 100644
--- a/api/core/indexing_runner.py
+++ b/api/core/indexing_runner.py
@@ -106,7 +106,8 @@ class IndexingRunner:
document_id=dataset_document.id
).all()
- db.session.delete(document_segments)
+ for document_segment in document_segments:
+ db.session.delete(document_segment)
db.session.commit()
# load file