aboutsummaryrefslogtreecommitdiff
path: root/umosapi/app_db/uobject.py
diff options
context:
space:
mode:
Diffstat (limited to 'umosapi/app_db/uobject.py')
-rw-r--r--umosapi/app_db/uobject.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/umosapi/app_db/uobject.py b/umosapi/app_db/uobject.py
index 00aa9b7..78b8bc8 100644
--- a/umosapi/app_db/uobject.py
+++ b/umosapi/app_db/uobject.py
@@ -60,9 +60,13 @@ class UObject(object):
"code": 404
}
- datas = dict(("datas.{}".format(key), value) for (key, value) in datas.items())
+ datas = dict(
+ ("datas.{}".format(key), value) for (key, value) in datas.items()
+ )
if not error:
- mongo.db.uobjects.update_one({"_id": ObjectId(_id)}, {"$set": datas})
+ mongo.db.uobjects.update_one(
+ {"_id": ObjectId(_id)}, {"$set": datas}
+ )
return {"msg": "UObject updated.", "code": 200}
return error