fix: 研究Tab港股策略可见——_active_set合并A股顶层+港股markets.hk.active激活集合,港股策略不再折叠在历史组
This commit is contained in:
@@ -543,7 +543,10 @@ def api_research_strategies():
|
||||
# 2026-08-13 温区自适应:为每个策略附加各温区表现(strategy_regime_perf)
|
||||
# + 当前温区激活状态(regime_weights)。前端按"适应温区"展开多行。
|
||||
_weights = _load_json(DATA_DIR / "strategy_weights.json", None) or {}
|
||||
# 2026-08-14 港股接入:激活集合 = A股顶层 active + 港股 markets.hk.active
|
||||
_active_set = set(_weights.get("active") or [])
|
||||
_hk_market = (_weights.get("markets") or {}).get("hk") or {}
|
||||
_active_set |= set(_hk_market.get("active") or [])
|
||||
_regime_winrates = {}
|
||||
try:
|
||||
import sqlite3 as _sq
|
||||
|
||||
Reference in New Issue
Block a user