Automated update of Base Application package.
This commit is contained in:
parent
249e44f405
commit
6019a70012
BIN
dist/app-1.0.0-py3-none-any.whl
vendored
BIN
dist/app-1.0.0-py3-none-any.whl
vendored
Binary file not shown.
BIN
dist/app-1.0.0.tar.gz
vendored
BIN
dist/app-1.0.0.tar.gz
vendored
Binary file not shown.
@ -177,7 +177,7 @@ class WebDbApplication(BaseApplication):
|
|||||||
async def get(self, key, default=None):
|
async def get(self, key, default=None):
|
||||||
record = self.db["kv"].find_one(key=key)
|
record = self.db["kv"].find_one(key=key)
|
||||||
if record:
|
if record:
|
||||||
result = record.get("value","null")
|
result = record.get("value", "null")
|
||||||
return result == "null" and default or json.loads(result)
|
return result == "null" and default or json.loads(result)
|
||||||
return default
|
return default
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user