fix: sort candidates by score across strategies before limiting MAX_ADD

This commit is contained in:
hmo
2026-06-30 02:15:44 +08:00
parent 992b283d3f
commit c38787aea3
+1
View File
@@ -187,6 +187,7 @@ def run_all(strategies_str, market, max_results, dry_run=False):
print("无符合条件的新标的")
return
new_stocks.sort(key=lambda s: s["source_detail"]["score"], reverse=True)
new_stocks = new_stocks[:MAX_ADD]
print(f"\n新增 {len(new_stocks)} 只到自选池:")