def getcompletestats(self): if self.is_template_project: return empty_completestats for store in self.stores.filter(state__lt=CHECKED).iterator(): store.require_qualitychecks() query = QualityCheck.objects.filter(unit__store__translation_project=self, false_positive=False) return group_by_count(query, "name")
def getcompletestats(self): if self.is_template_project: return empty_completestats for store in self.stores.filter(state__lt=CHECKED).iterator(): store.require_qualitychecks() query = QualityCheck.objects.filter( unit__store__translation_project=self, false_positive=False) return group_by_count(query, 'name')
def getcompletestats(self): """report result of quality checks""" self.require_qualitychecks() queryset = QualityCheck.objects.filter(unit__store=self, unit__state__gt=UNTRANSLATED, false_positive=False) return group_by_count(queryset, 'name')