From 1ea53d2ca95a40c309b43e7999cd9e4e81529dec Mon Sep 17 00:00:00 2001 From: lerdb Date: Tue, 19 Nov 2024 23:05:26 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=A1=A5=E4=B8=A4=E4=B8=AA=E6=8B=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/Httpx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/Httpx.py b/common/Httpx.py index 352e843..b764d5c 100644 --- a/common/Httpx.py +++ b/common/Httpx.py @@ -176,7 +176,7 @@ def request(url: str, options={}) -> requests.Response: if cache_info and cache_info != "no-cache": cache_data = pickle.dumps(req) expire_time = cache_info if isinstance(cache_info, int) else 3600 - expire_at = int((time.time) + expire_time) + expire_at = int((time.time()) + expire_time) config.updateCache( "httpx", cache_key, @@ -333,7 +333,7 @@ async def AsyncRequest(url, options={}) -> ClientResponse: if cache_info and cache_info != "no-cache": cache_data = pickle.dumps(req) expire_time = cache_info if isinstance(cache_info, int) else 3600 - expire_at = int((time.time) + expire_time) + expire_at = int((time.time()) + expire_time) config.updateCache( "httpx_async", cache_key,