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 数据读取失败"))