fix: 修复文档同步文档状态错误 (#942)

This commit is contained in:
shaohuzhang1 2024-08-07 13:54:12 +08:00 committed by GitHub
parent 0e186f3f5a
commit 59af953caa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -365,7 +365,7 @@ class DocumentSerializers(ApiMixin, serializers.Serializer):
if document.type != Type.web:
return True
try:
document.status = Status.embedding
document.status = Status.queue_up
document.save()
source_url = document.meta.get('source_url')
selector_list = document.meta.get('selector').split(