Task add method push_key

pull/26/head
Zi Chuanxiu 2015-10-30 23:14:45 +08:00
parent fe23e61036
commit dd4ac4e6d6
1 changed files with 1 additions and 4 deletions

View File

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