From fbbb96020f301e981fa2c805d71038350f5e3a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=A5=E5=BE=AE?= Date: Tue, 7 Jul 2026 09:20:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20system=5Fhealth=5Fcheck=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E8=AF=AF=E6=8A=A5market.json/decisions.json=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=EF=BC=88DB-only=E5=B7=B2=E8=BF=81=E7=A7=BB=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/system_health_check.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/system_health_check.py b/scripts/system_health_check.py index 64ade3da..b22dbcde 100644 --- a/scripts/system_health_check.py +++ b/scripts/system_health_check.py @@ -96,7 +96,9 @@ def run(): lines.append(check(len(wl.get("stocks", [])) > 0, f"watchlist.json DB记录: {len(wl.get('stocks', []))}条")) ok_count += 1 dec = read_decisions() - lines.append(check(len(dec.get("decisions", [])) > 0, f"decisions.json DB记录: {len(dec.get('decisions', []))}条")) + # 注意:holding_strategies 表是决策的DB版本 + dec_count = len(dec.get("decisions", [])) + lines.append(check(dec_count > 0, f"decisions.json 记录: {dec_count}条(DB holding_strategies表: {len(pf.get('holdings',[]))}只)")) ok_count += 1 except Exception: lines.append(check(False, "MoFin DB 数据读取失败"))