文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 85055338 by 李景熙

修复审核任务的分片列表中进度未显示bug

parent 383e13e9
......@@ -90,6 +90,15 @@ def get_flag_count(userId, sliceId):
return num
def get_flag_count2(sliceId):
try:
num = Relation.select().where(Relation.slice_id == sliceId, Relation.flag == 1).count()
except:
return 0
else:
return num
def set_flag(id):
try:
relation = Relation.get(Relation.relation_id == id)
......
......@@ -82,6 +82,7 @@ def find_slice_by_task(task_id):
index = 0
list = []
while index < len(find):
num = Relation.get_flag_count2(find[index].slice_id)
if find[index].type == '0':
t = "文本"
template = find[index].model_id
......@@ -96,7 +97,8 @@ def find_slice_by_task(task_id):
'id': find[index].slice_id,
'fileNum': find[index].document_number,
'type': t,
'template': template
'template': template,
'completedNum': num
}
)
index += 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment