def get_critical_url_for_path(self, pootle_path, **kwargs): """Return this goal's translate URL for critical checks failures in the given path. :param pootle_path: A string with a valid pootle path. """ critical = ','.join(get_qualitychecks_by_category(Category.CRITICAL)) return self.get_translate_url_for_path(pootle_path, check=critical)
def get_critical1(self): """Alter implementaion (pick up every check separately)""" result = 0 for check in get_qualitychecks_by_category(Category.CRITICAL): result += self.get_checks_by_name(check) return result
def get_critical_url(self): critical = ','.join(get_qualitychecks_by_category(Category.CRITICAL)) return self.get_translate_url(check=critical)
def get_critical(self): check_stats = self.get_checks() return sum(map(lambda x: check_stats[x] if x in check_stats else 0, get_qualitychecks_by_category(Category.CRITICAL)))
def get_critical_url(self, pootle_path, **kwargs): critical = ','.join(get_qualitychecks_by_category(Category.CRITICAL)) return self.get_translate_url(pootle_path, check=critical, **kwargs)