diff --git a/dist/app-1.0.0-py3-none-any.whl b/dist/app-1.0.0-py3-none-any.whl index 00118f9..9fdd5d1 100644 Binary files a/dist/app-1.0.0-py3-none-any.whl and b/dist/app-1.0.0-py3-none-any.whl differ diff --git a/dist/app-1.0.0.tar.gz b/dist/app-1.0.0.tar.gz index a12a108..cc4a318 100644 Binary files a/dist/app-1.0.0.tar.gz and b/dist/app-1.0.0.tar.gz differ diff --git a/src/app/app.py b/src/app/app.py index d2693e1..b6cfc5d 100644 --- a/src/app/app.py +++ b/src/app/app.py @@ -172,13 +172,13 @@ class WebDbApplication(BaseApplication): return web.json_response(response) async def set(self, key, value): - return self.sset(key,value) + return self.sset(key, value) def sset(self, key, value): value = json.dumps(value, default=str) return self.db["kv"].upsert({"key": key, "value": value}, ["key"]) - async def get(key,default=None): + async def get(key, default=None): return self.sget(key, default) def sget(self, key, default=None): @@ -188,8 +188,6 @@ class WebDbApplication(BaseApplication): return result == "null" and default or json.loads(result) return default - - async def insert(self, table_name, data): return self.db[table_name].insert(data)