refactor: remove duplicate scripts + JSON constants + update docs

This commit is contained in:
知微
2026-07-04 09:30:50 +08:00
parent 7d6b08953c
commit 8b114d6e9e
26 changed files with 2200 additions and 4913 deletions
-8
View File
@@ -19,10 +19,6 @@ from datetime import datetime, date
from mo_data import read_portfolio, read_decisions
from mofin_db import get_conn, write_holding_strategy
# 路径
DECISIONS_PATH = "/home/hmo/web-dashboard/data/decisions.json"
PORTFOLIO_PATH = "/home/hmo/web-dashboard/data/portfolio.json"
# 引入 strategy_tree 模块
sys.path.insert(0, "/home/hmo/MoFin")
try:
@@ -132,10 +128,6 @@ def evaluate_all():
conn.close()
except Exception:
pass
# [migrated to DB] — cold backup removed
# with open(DECISIONS_PATH, "w") as f:
# json.dump(data, f, indent=2, ensure_ascii=False)
# 输出摘要(空 = 静默)
lines = []
init_note = f" | 自动初始化{auto_init_count}" if auto_init_count else ""