fix: sort candidates by score across strategies before limiting MAX_ADD
This commit is contained in:
@@ -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)} 只到自选池:")
|
||||
|
||||
Reference in New Issue
Block a user