chore: update base application package dependencies and configuration files
Build Base Application / Build (push) Successful in 1m20s
Build Base Application / Build (push) Successful in 1m20s
This commit is contained in:
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
Metadata-Version: 2.2
|
Metadata-Version: 2.4
|
||||||
Name: app
|
Name: app
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Summary: Base application
|
Summary: Base application
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@ class BaseApplication(RPCApplication):
|
|||||||
self.basic_password = basic_password
|
self.basic_password = basic_password
|
||||||
self.session = session or {}
|
self.session = session or {}
|
||||||
middlewares = kwargs.pop("middlewares", [])
|
middlewares = kwargs.pop("middlewares", [])
|
||||||
#middlewares.append(self.request_middleware)
|
# middlewares.append(self.request_middleware)
|
||||||
middlewares.append(self.base64_auth_middleware)
|
middlewares.append(self.base64_auth_middleware)
|
||||||
middlewares.append(self.session_middleware)
|
middlewares.append(self.session_middleware)
|
||||||
self.template_path = (
|
self.template_path = (
|
||||||
|
|||||||
+11
-3
@@ -36,7 +36,11 @@ def time_cache(timeout: int = 600):
|
|||||||
|
|
||||||
@wraps(func)
|
@wraps(func)
|
||||||
def wrapper(*args, **kwargs):
|
def wrapper(*args, **kwargs):
|
||||||
key = [arg for arg in args if isinstance(arg,(int,str,bool,dict,list,tuple,set))]
|
key = [
|
||||||
|
arg
|
||||||
|
for arg in args
|
||||||
|
if isinstance(arg, (int, str, bool, dict, list, tuple, set))
|
||||||
|
]
|
||||||
if not key:
|
if not key:
|
||||||
return func(*args, **kwargs)
|
return func(*args, **kwargs)
|
||||||
key = (
|
key = (
|
||||||
@@ -66,8 +70,12 @@ def time_cache_async(timeout: int = 600):
|
|||||||
@wraps(func)
|
@wraps(func)
|
||||||
async def wrapper(*args, **kwargs):
|
async def wrapper(*args, **kwargs):
|
||||||
|
|
||||||
key = [arg for arg in args if isinstance(arg,(int,str,bool,dict,list,tuple,set))]
|
key = [
|
||||||
|
arg
|
||||||
|
for arg in args
|
||||||
|
if isinstance(arg, (int, str, bool, dict, list, tuple, set))
|
||||||
|
]
|
||||||
|
|
||||||
if not key:
|
if not key:
|
||||||
return await func(*args, **kwargs)
|
return await func(*args, **kwargs)
|
||||||
key = (
|
key = (
|
||||||
|
|||||||
Reference in New Issue
Block a user