fix: lib 迁移后中控数据路径指向 manual_trading_hub
修复 hub_fund_history 等模块误读 lib/hub/manual_trading_hub 导致资金概况历史曲线丢失的问题。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -20,3 +20,14 @@ def embed_templates_dir(repo_root: str | Path | None = None) -> str:
|
||||
def common_static_dir(repo_root: str | Path | None = None) -> str:
|
||||
root = Path(repo_root) if repo_root is not None else REPO_ROOT
|
||||
return str(root / "lib" / "common" / "static")
|
||||
|
||||
|
||||
def manual_trading_hub_dir(repo_root: str | Path | None = None) -> Path:
|
||||
root = Path(repo_root) if repo_root is not None else REPO_ROOT
|
||||
return root / "manual_trading_hub"
|
||||
|
||||
|
||||
def hub_data_dir(repo_root: str | Path | None = None) -> Path:
|
||||
path = manual_trading_hub_dir(repo_root) / "data"
|
||||
path.mkdir(parents=True, exist_ok=True)
|
||||
return path
|
||||
|
||||
Reference in New Issue
Block a user