Task add method push_key

pull/26/head
Zi Chuanxiu 9 years ago
parent fe23e61036
commit dd4ac4e6d6

@ -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):

Loading…
Cancel
Save