def _get_zones_by_hard_coded_rule(self, zone, force_cardio_zone_ids):
     args = (
         self.level,
         zone,
         force_cardio_zone_ids,
     )
     possible_zones = CardioZone.query_by_restricted_ids(*args)
     return self._random_choice(possible_zones)
 def _get_zones_by_query(self, zone):
     cardio_type = self.user.get_cardio_type_id()
     args = (
         self.level,
         zone,
         cardio_type,
         self.user.fitness_level
     )
     possible_zones = CardioZone.query(*args)
     return self._random_choice(possible_zones)