diff options
Diffstat (limited to '')
-rw-r--r-- | umosapi/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/umosapi/api.py b/umosapi/api.py index ef83c18..72240f5 100644 --- a/umosapi/api.py +++ b/umosapi/api.py @@ -66,7 +66,7 @@ class Register(Resource): args = request.get_json(force=True) status = uobject.register(args.get('name'), args.get('datas')) - return loads('{"msg": "'+status['msg']+'"}'), status['code'] + return {"msg": status['msg']}, status['code'] @api.route('/objects/<name>') @@ -76,4 +76,4 @@ class Remove(Resource): """ Remove an uobject """ status = uobject.remove(name) - return loads('{"msg": "'+status['msg']+'"}'), status['code'] + return {"msg": status['msg']}, status['code'] |