fix document enable (#28081)

This commit is contained in:
Jyong 2025-11-11 17:50:45 +08:00 committed by CodingOnStar
parent 57a7e3c20f
commit 2ee55d8bc8
1 changed files with 0 additions and 1 deletions

View File

@ -48,7 +48,6 @@ def add_document_to_index_task(dataset_document_id: str):
db.session.query(DocumentSegment)
.where(
DocumentSegment.document_id == dataset_document.id,
DocumentSegment.enabled == False,
DocumentSegment.status == "completed",
)
.order_by(DocumentSegment.position.asc())