fix: system_health_check不再误报market.json/decisions.json缺失(DB-only已迁移)
This commit is contained in:
@@ -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 数据读取失败"))
|
||||
|
||||
Reference in New Issue
Block a user