diff options
Diffstat (limited to 'umosapi/app_db/uobject.py')
-rw-r--r-- | umosapi/app_db/uobject.py | 6 |
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" |