From e29e3d32fb1dd4894a5d18f41d2eca13deebc2dc Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Tue, 7 Jul 2026 17:54:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=BF=E5=9D=97=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/services/eastmoney.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/services/eastmoney.py b/backend/services/eastmoney.py index e75aa6e..c6a7c1e 100644 --- a/backend/services/eastmoney.py +++ b/backend/services/eastmoney.py @@ -366,9 +366,7 @@ async def fetch_sector_list(sector_type: str) -> list[dict]: data = await _fetch_akshare(sector_type) if data: _sector_cache[sector_type] = (data, now) - ttl = _sector_ttl_hours() - if ttl > 0: - set_cache(cache_key, json.dumps(data, ensure_ascii=False), ttl_hours=ttl) + # akshare 数据源更新不确定,不写入磁盘缓存 return data