Compare commits

...

2 Commits

Author SHA1 Message Date
gabriel becker aca8c90a38 misc 10 months ago
gabriel becker b721f2a888 Add default number of sessions 10 months ago
  1. 5
      .gitignore
  2. 2
      open_workout_coach/map_yaml_to_database.py

5
.gitignore vendored

@ -1,3 +1,8 @@
data data
**.*mp4 **.*mp4
**.*json **.*json
.venv
venv
outputs/
__pycache__
*.zip

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