mirror of
https://github.com/gryf/coach.git
synced 2025-12-19 04:00: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():
|
def display_all_presets_and_exit():
|
||||||
# list available presets
|
# list available presets
|
||||||
if args.list:
|
screen.log_title("Available Presets:")
|
||||||
screen.log_title("Available Presets:")
|
for preset in sorted(list_all_presets()):
|
||||||
for preset in sorted(list_all_presets()):
|
print(preset)
|
||||||
print(preset)
|
sys.exit(0)
|
||||||
sys.exit(0)
|
|
||||||
|
|
||||||
def expand_preset(preset):
|
def expand_preset(preset):
|
||||||
if preset.lower() in [p.lower() for p in list_all_presets()]:
|
if preset.lower() in [p.lower() for p in list_all_presets()]:
|
||||||
|
|||||||
Reference in New Issue
Block a user