Skip to content

Commit 008f6a0

Browse files
shaohuzhang1wxg0103
authored andcommitted
fix: Guide package (#1986)
1 parent 4fb2143 commit 008f6a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/common/event/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import setting.models
1010
from setting.models import Model
1111
from .listener_manage import *
12+
from common.db.sql_execute import update_execute
13+
1214
from django.utils.translation import gettext as _
1315

1416
update_document_status_sql = """
@@ -20,5 +22,5 @@
2022
def run():
2123
# QuerySet(Document).filter(status__in=[Status.embedding, Status.queue_up]).update(**{'status': Status.error})
2224
QuerySet(Model).filter(status=setting.models.Status.DOWNLOAD).update(status=setting.models.Status.ERROR,
23-
meta={'message': _('The download process was interrupted, please try again')})
25+
meta={'message': "下载程序被中断,请重试"})
2426
update_execute(update_document_status_sql, [])

0 commit comments

Comments
 (0)