def get_map_progress(self, service): if service == self.rackdata.TEMPERATURE_NAME: self.map_progress = get_temperature_progress(self.username) elif service == self.rackdata.SERVICE_NAME: self.map_progress = get_service_progress(self.username) return self.map_progress
def get_map_progress(self): service = self.subclass_type if service == self.subclass_type_list[0]: self.map_progress = get_temperature_progress(self.username) elif service == self.subclass_type_list[1]: self.map_progress = get_service_progress(self.username) return self.map_progress