fixed --strategy-list

moved ast comments to requirements.txt >=1.0.0 (since that is the first version that adds the comments unparsing)
This commit is contained in:
hippocritical 2023-03-03 18:53:09 +01:00
parent 08ca0f7c0f
commit 87b7513401
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ def start_strategy_update(args: Dict[str, Any]) -> None:
config, enum_failed=False, recursive=config.get('recursive_strategy_search', False)) config, enum_failed=False, recursive=config.get('recursive_strategy_search', False))
filtered_strategy_objs = [] filtered_strategy_objs = []
if hasattr(args, "strategy_list"): if 'strategy_list' in args:
for args_strategy in args['strategy_list']: for args_strategy in args['strategy_list']:
for strategy_obj in strategy_objs: for strategy_obj in strategy_objs:
if (strategy_obj['name'] == args_strategy if (strategy_obj['name'] == args_strategy

View File

@ -58,4 +58,4 @@ schedule==1.1.0
websockets==10.4 websockets==10.4
janus==1.0.0 janus==1.0.0
astor~=0.8.1 ast-comments>=1.0.0