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

Commit 15c64a70 by 李景熙

修改任务状态变更条件

parent 723a9d25
......@@ -243,8 +243,9 @@ def set_state(task_id, state):
except:
return False
else:
t.task_state = state
t.save()
if int(t.task_state) < int(state):
t.task_state = state
t.save()
return True
......
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