From 13790e0cb678381d313a10036f41c4fae66b9095 Mon Sep 17 00:00:00 2001 From: hmo Date: Sat, 15 Aug 2026 09:59:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=5Fmissing=5Factive=E6=BF=80=E6=B4=BB?= =?UTF-8?q?=E7=AD=96=E7=95=A5description=E4=B9=9Ffallback=E5=88=B0name/sum?= =?UTF-8?q?mary=E2=80=94=E2=80=94=E6=BF=80=E6=B4=BB=E4=BD=86=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E5=BA=93=E6=97=A0=E8=AE=B0=E5=BD=95=E7=9A=84=E7=AD=96?= =?UTF-8?q?=E7=95=A5(s2=5Fpanic=E7=AD=89)=E8=AF=B4=E6=98=8E=E5=88=97?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server.py b/server.py index 3dcea7b9..d9120d7d 100644 --- a/server.py +++ b/server.py @@ -661,6 +661,14 @@ def api_research_strategies(): continue _entry = dict(_s10) _entry['description'] = STRATEGY_DESCRIPTIONS.get(_mv, {}) + # 2026-08-15:激活但策略库无记录的策略,description fallback 到 name/summary(说明列不再空) + if not _entry['description'] and (_entry.get('name') or _entry.get('summary')): + _entry['description'] = { + 'title': _entry.get('name') or _mv, + 'algorithm': _entry.get('summary') or '', + 'rationale': _entry.get('hypothesis') or '', + 'evidence': '', + } _entry['regime_winrates'] = _regime_winrates.get(_mv, {}) _entry['current'] = True _entry['note'] = f"({pt or '当前周期'}无回测记录,显示10y数据)"