removed prints for strategy could not be loaded
changed back to ast, astor is not really needed.
This commit is contained in:
@@ -26,17 +26,11 @@ def start_strategy_update(args: Dict[str, Any]) -> None:
|
||||
|
||||
filtered_strategy_objs = []
|
||||
for args_strategy in args['strategy_list']:
|
||||
found = False
|
||||
for strategy_obj in strategy_objs:
|
||||
if strategy_obj['name'] == args_strategy and strategy_obj not in filtered_strategy_objs:
|
||||
filtered_strategy_objs.append(strategy_obj)
|
||||
found = True
|
||||
break
|
||||
|
||||
if not found:
|
||||
print(f"strategy {strategy_obj['name']} could not be loaded or found and is skipped.")
|
||||
|
||||
for filtered_strategy_obj in filtered_strategy_objs:
|
||||
# Initialize backtesting object
|
||||
instance_strategy_updater = StrategyUpdater()
|
||||
self.start(config, filtered_strategy_obj)
|
||||
instance_strategy_updater.start(config, filtered_strategy_obj)
|
||||
|
Reference in New Issue
Block a user