Commit dd4ac4e6 authored by Zi Chuanxiu's avatar Zi Chuanxiu

Task add method push_key

parent fe23e610
......@@ -195,10 +195,7 @@ class Tasks(Command):
if value.get("msg"):
msg[key] = value.get("msg")
if not msg:
return {"status": "ok"}
else:
return {"status": "failed","msg": msg}
return {"status": "ok"} if msg else {"status": "failed","msg": msg}
def add_user(self, user):
......
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