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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/umosapi/app_db/uobject.py b/umosapi/app_db/uobject.py
index 60094c7..00aa9b7 100644
--- a/umosapi/app_db/uobject.py
+++ b/umosapi/app_db/uobject.py
@@ -85,3 +85,9 @@ class UObject(object):
"datas": datas,
"code": 404
}
+
+ def reset(self):
+ db = MongoDB(self.app)
+ mongo = db.connection()
+ mongo.db.uobjects.remove()
+ return "done"