mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 11:40:18 +01:00
Bug fix: Removed reference to args which is out of scope. Conditioning now performed one level above. (#54)
This commit is contained in:
committed by
Scott Leishman
parent
a888226641
commit
324c67d614
@@ -93,11 +93,10 @@ def get_graph_manager_from_args(args: argparse.Namespace) -> 'GraphManager':
|
||||
|
||||
def display_all_presets_and_exit():
|
||||
# list available presets
|
||||
if args.list:
|
||||
screen.log_title("Available Presets:")
|
||||
for preset in sorted(list_all_presets()):
|
||||
print(preset)
|
||||
sys.exit(0)
|
||||
screen.log_title("Available Presets:")
|
||||
for preset in sorted(list_all_presets()):
|
||||
print(preset)
|
||||
sys.exit(0)
|
||||
|
||||
def expand_preset(preset):
|
||||
if preset.lower() in [p.lower() for p in list_all_presets()]:
|
||||
|
||||
Reference in New Issue
Block a user