Commit c79e9bb2 authored by Michal Čihař's avatar Michal Čihař

Remove not really needed method

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 7ca557e2
......@@ -991,7 +991,7 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
for check in CHECKS:
if not CHECKS[check].source:
continue
cnt = self.get_failing_checks(check)
cnt = self.unit_set.count_type(check, self)
if cnt > 0:
result.append((
check,
......@@ -1260,14 +1260,6 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
return ret, store.count_units()
def get_failing_checks(self, check):
'''
Returns number of units with failing checks.
By default for all checks or check type can be specified.
'''
return self.unit_set.count_type(check, self)
def invalidate_cache(self, cache_type=None):
'''
Invalidates any cached stats.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment