Fixing typo in dbmemory.py in return messafe for replace()
[osm/common.git] / osm_common / dbmemory.py
index cdb0482..d7419f4 100644 (file)
@@ -1,5 +1,5 @@
 import logging
-from dbbase import DbException, DbBase
+from osm_common.dbbase import DbException, DbBase
 from http import HTTPStatus
 from uuid import uuid4
 from copy import deepcopy
@@ -94,7 +94,7 @@ class DbMemory(DbBase):
                     raise DbException("Not found entry with filter='{}'".format(filter), HTTPStatus.NOT_FOUND)
                 return None
             self.db[table][i] = deepcopy(indata)
-            return {"upadted": 1}
+            return {"updated": 1}
         except Exception as e:  # TODO refine
             raise DbException(str(e))
 
@@ -114,7 +114,7 @@ class DbMemory(DbBase):
 
 if __name__ == '__main__':
     # some test code
-    db = dbmemory()
+    db = DbMemory()
     db.create("test", {"_id": 1, "data": 1})
     db.create("test", {"_id": 2, "data": 2})
     db.create("test", {"_id": 3, "data": 3})