Browse Source

Add default number of sessions

main
gabriel becker 10 months ago
parent
commit
b721f2a888
  1. 2
      open_workout_coach/map_yaml_to_database.py

2
open_workout_coach/map_yaml_to_database.py

@ -93,7 +93,7 @@ def map_config_to_workout_file(config):
) )
for item in config['exercises'] for item in config['exercises']
] ]
sessions = [create_workout_session(items)] * config['n_sessions'] sessions = [create_workout_session(items)] * config.get('n_sessions', 1)
db = create_workout_database(config['name'], sessions) db = create_workout_database(config['name'], sessions)
return db return db

Loading…
Cancel
Save