From 6f6b40c61e1932c7c0d695e48310befd9081478a Mon Sep 17 00:00:00 2001 From: retoor Date: Fri, 4 Jul 2025 10:30:24 +0200 Subject: [PATCH] Update. --- src/app/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/cache.py b/src/app/cache.py index 546cc01..c04e1d1 100644 --- a/src/app/cache.py +++ b/src/app/cache.py @@ -36,7 +36,7 @@ def time_cache(timeout: int = 600): @wraps(func) 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: return func(*args, **kwargs) key = ( @@ -66,7 +66,7 @@ def time_cache_async(timeout: int = 600): @wraps(func) 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: return await func(*args, **kwargs)