rndex = wkout.pick_random_exercise("Core") wkout.add_exercise(rndex['name']) wp.add_workout(wkout) wPercent = workout.periodization_equation(workoutCount, totalWorkouts) workoutCount = workoutCount + 1 dayIndex = dayIndex + workout_day_inc[1] workoutdate = wp.workoutprogram_dt_start + timedelta(days=dayIndex) wkout = Workout("%s - Strength" % (workoutdate.strftime("%A")), workoutdate, wPercent, volume) wkout.add_exercise_target_volume("Climbing", 8) rndex = wkout.pick_random_exercise("Core") wkout.add_exercise(rndex['name']) wp.add_workout(wkout) wPercent = workout.periodization_equation(workoutCount, totalWorkouts) workoutCount = workoutCount + 1 dayIndex = dayIndex + workout_day_inc[2] workoutdate = wp.workoutprogram_dt_start + timedelta(days=dayIndex) wkout = Workout("%s - Olympic" % (workoutdate.strftime("%A")), workoutdate, wPercent, volume) wkout.add_exercise_target_volume("Climbing", 8) rndex = wkout.pick_random_exercise("Core") wkout.add_exercise(rndex['name']) wp.add_workout(wkout) dayIndex = dayIndex + workout_day_inc[3] wp.create_txt_workout("climbing") # wp.create_icalendar_workout()
wkout.add_exercise_target_volume(rndex['name'], 5) rndex = wkout.pick_random_exercise("Olympic") wkout.add_exercise_target_volume(rndex['name'], 5) rndex = wkout.pick_random_exercise("Squat") wkout.add_exercise_target_volume(rndex['name'], 5) wkout.add_exercise_target_volume("Deadlift", 5) wkout.add_exercise("Push ups") rndex = wkout.pick_random_exercise("Core") wkout.add_exercise(rndex['name']) wp.add_workout(wkout) wPercent = workout.periodization_equation(workoutCount, totalWorkouts) workoutCount = workoutCount + 1 dayIndex = dayIndex + workout_day_inc[2] workoutdate = wp.workoutprogram_dt_start + timedelta(days=dayIndex) wkout = Workout("%s - Olympic" % (workoutdate.strftime("%A")), workoutdate, wPercent, volume) wkout.add_exercise_target_volume("Snatch", 8) wkout.add_exercise_target_volume("Clean and Jerk", 8) wkout.add_exercise_target_volume("Deadlift", 5) wkout.add_exercise("Pull ups") rndex = wkout.pick_random_exercise("Core") wkout.add_exercise(rndex['name']) wp.add_workout(wkout) dayIndex = dayIndex + workout_day_inc[3] wp.create_txt_workout() wp.create_icalendar_workout()