fix: DB路径大面积修复——mofin_db/server/technical_analysis/strategy_tree等脚本的Path(__file__).parent/data错误指向scripts/data而非data/ 导致读写分离

- 量价分析: full_analysis输出volume_deep+成交量存储在price_history.json
- FK约束移除: holding_strategies外键->holdings阻止自选股写入
- #000850 重评已写入(止损3.74/止盈4.06/RR1.67)含量价信号
This commit is contained in:
知微
2026-07-08 12:34:39 +08:00
parent c11a11849f
commit 2762ddf3ae
58 changed files with 7664 additions and 2280 deletions
+9 -5
View File
@@ -42,22 +42,26 @@ class MoConfig:
# Hermes 状态目录
hermes_dir: Path = field(default_factory=lambda: Path.home() / ".hermes")
# ── 关键数据文件路径 ──────────────────────────────────────────
# ── 关键数据文件路径(已废弃,仅保留为检查逻辑。新代码勿用) ──────
@property
def portfolio_path(self) -> Path:
"""⚠️ 已废弃!数据在 mofin.db holdings + portfolio_summary 表。"""
return self.data_dir / "portfolio.json"
@property
def decisions_path(self) -> Path:
"""⚠️ 已废弃!数据在 mofin.db holding_strategies 表。"""
return self.data_dir / "decisions.json"
@property
def watchlist_path(self) -> Path:
"""⚠️ 已废弃!数据在 mofin.db watchlist_stocks 表。"""
return self.data_dir / "watchlist.json"
@property
def price_events_path(self) -> Path:
"""⚠️ 已废弃!数据在 mofin.db price_events 表。"""
return self.data_dir / "price_events.json"
@property