Example #1
0
 def get_volume_for_workout_component(self, workout_component_id, force_different_phase=None):
     if self.current_phase_id is None:
         raise NoGoalSetException("User hasn't started a phase yet")
     phase_id = force_different_phase or self.current_phase_id
     fitness_level = self.fitness_level
     week = self.current_week_in_phase
     return CardioVolume.get_all_volume_info(phase_id, fitness_level, week, workout_component_id)
Example #2
0
 def get_min_max_cardio(self):
     # per week
     if self.current_phase_id is None:
         raise NoGoalSetException("User hasn't started a phase yet")
     args = (
         self.current_phase_id,
         self.fitness_level,
         self.current_week_in_phase,
     )
     return CardioVolume.get_min_max_cardio(*args)