diff --git a/server.py b/server.py index b9addd63..54e9bc6b 100644 --- a/server.py +++ b/server.py @@ -535,10 +535,11 @@ def get_tracking(): @app.route("/api/research/strategies") def api_research_strategies(): - """策略版本列表(含回测结果摘要)""" + """策略版本列表(含回测结果摘要,支持 period_tag 区间过滤)""" try: from strategy_lab import list_strategies - return jsonify({'strategies': list_strategies()}) + pt = request.args.get('period_tag') + return jsonify({'strategies': list_strategies(period_tag=pt)}) except Exception as e: return jsonify({'error': str(e)}), 500 diff --git a/static/index.html b/static/index.html index 66427c73..7ee52d96 100644 --- a/static/index.html +++ b/static/index.html @@ -1931,9 +1931,9 @@ function renderResearch() { if (!el) return; el.innerHTML = '