We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fb2143 commit 008f6a0Copy full SHA for 008f6a0
apps/common/event/__init__.py
@@ -9,6 +9,8 @@
9
import setting.models
10
from setting.models import Model
11
from .listener_manage import *
12
+from common.db.sql_execute import update_execute
13
+
14
from django.utils.translation import gettext as _
15
16
update_document_status_sql = """
@@ -20,5 +22,5 @@
20
22
def run():
21
23
# QuerySet(Document).filter(status__in=[Status.embedding, Status.queue_up]).update(**{'status': Status.error})
24
QuerySet(Model).filter(status=setting.models.Status.DOWNLOAD).update(status=setting.models.Status.ERROR,
- meta={'message': _('The download process was interrupted, please try again')})
25
+ meta={'message': "下载程序被中断,请重试"})
26
update_execute(update_document_status_sql, [])
0 commit comments