修复报错
This commit is contained in:
parent
ec6e699390
commit
356856def4
@ -1248,8 +1248,6 @@ class DocumentSerializers(serializers.Serializer):
|
||||
# 更新音视频文档的状态
|
||||
if hasattr(doc, 'meta') and doc.meta and doc.meta.get('stt_model_id'):
|
||||
try:
|
||||
from common.event import ListenerManagement
|
||||
from knowledge.models import TaskType, State
|
||||
# 更新文档状态为成功
|
||||
ListenerManagement.update_status(
|
||||
QuerySet(Document).filter(id=doc.id),
|
||||
@ -1393,9 +1391,6 @@ class DocumentSerializers(serializers.Serializer):
|
||||
document_result_list[idx]['is_media_learning'] = True
|
||||
# 设置排队状态并触发音视频异步任务
|
||||
try:
|
||||
from common.event import ListenerManagement
|
||||
from knowledge.models import TaskType, State
|
||||
|
||||
# 更新文档状态为排队中
|
||||
ListenerManagement.update_status(
|
||||
QuerySet(Document).filter(id=document_id),
|
||||
|
||||
@ -165,7 +165,6 @@ function clearStore() {
|
||||
})
|
||||
}
|
||||
function submit() {
|
||||
alert('Submit function called! documentsType=' + documentsType.value)
|
||||
loading.value = true
|
||||
const documents = [] as any
|
||||
console.log('Submit called, documentsType:', documentsType.value)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user