mirror of https://github.com/langgenius/dify.git
fix document enable (#28081)
This commit is contained in:
parent
edc7ccc795
commit
5208867ccc
|
|
@ -48,7 +48,6 @@ def add_document_to_index_task(dataset_document_id: str):
|
||||||
db.session.query(DocumentSegment)
|
db.session.query(DocumentSegment)
|
||||||
.where(
|
.where(
|
||||||
DocumentSegment.document_id == dataset_document.id,
|
DocumentSegment.document_id == dataset_document.id,
|
||||||
DocumentSegment.enabled == False,
|
|
||||||
DocumentSegment.status == "completed",
|
DocumentSegment.status == "completed",
|
||||||
)
|
)
|
||||||
.order_by(DocumentSegment.position.asc())
|
.order_by(DocumentSegment.position.asc())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue