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

Commit 383e13e9 by 李景熙

修改已完成任务中分片未显示bug

parent 48ba265c
......@@ -45,7 +45,7 @@ def create_relation(slice_id, user_id, data_id):
# 查找Relation中与用户id相关的分片列表,用于我的任务的列表显示
def find_slice_by_executor(user_id):
try:
slice_list = Relation.select(Relation.slice_id).where(Relation.user_id == user_id, Relation.flag == 0)
slice_list = Relation.select(Relation.slice_id).where(Relation.user_id == user_id)
except:
return False
else:
......
......@@ -106,7 +106,7 @@ def find_slice_by_task(task_id):
return Result(1, "find success", list)
# 查找某任务下用户选择的分片(用于在分片列表中显示)(进度有bug)
# 查找某任务下用户选择的分片(用于在分片列表中显示)
def find_slice_by_task_user(task_id, user_id):
try:
slice_list = Relation.find_slice_by_executor(user_id)
......
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