Commit 79af88e4 authored by Michal Čihař's avatar Michal Čihař

Use stored failing checks count while counting

parent b09ed297
......@@ -168,6 +168,8 @@ class UnitManager(models.Manager):
return translation.fuzzy
elif rqtype == 'untranslated':
return translation.total - translation.translated
elif rqtype == 'allchecks':
return translation.failing_checks
# Try to get value from cache
cache_key = 'counts-%s-%s-%s' % (
......
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