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

Commit c0ba0d17 by 李景熙

已完成任务页面后端进行任务状态的返回

parent 81734aa4
......@@ -151,13 +151,18 @@ def find_task_completed(executor, start, num):
while index + start < len(find) and index < num:
user = User.get_username(find[index + start].publish_id)
if judge_completed(find[index + start].task_id, executor):
if find[index + start].task_state == 4:
state = "已完成"
else:
state = "待审核"
list.append(
{
'id': find[index + start].task_id,
'creator': user,
'creator_id': find[index + start].publish_id,
'name': find[index + start].task_name,
'date': find[index + start].publish_time.strftime("%Y-%m-%d %H:%M:%S")
'date': find[index + start].publish_time.strftime("%Y-%m-%d %H:%M:%S"),
'state': state
}
)
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