Commit ff73a53f authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents 5884328d 6f3bc368
...@@ -474,7 +474,10 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin): ...@@ -474,7 +474,10 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
if self._repository is None: if self._repository is None:
self._repository = VCS_REGISTRY[self.vcs](self.get_path()) self._repository = VCS_REGISTRY[self.vcs](self.get_path())
self._repository.check_config() cache_key = '{0}-config-check'.format(self.get_full_slug())
if cache.get(cache_key) is None:
self._repository.check_config()
cache.set(cache_key, True)
return self._repository return self._repository
......
...@@ -171,7 +171,10 @@ def show_check_project(request, name, project): ...@@ -171,7 +171,10 @@ def show_check_project(request, name, project):
'contentsum', flat=True 'contentsum', flat=True
) )
for subproject in prj.subproject_set.all(): for subproject in prj.subproject_set.all():
lang = subproject.translation_set.all()[0].language try:
lang = subproject.translation_set.all()[0].language
except IndexError:
continue
res = Unit.objects.filter( res = Unit.objects.filter(
contentsum__in=checks, contentsum__in=checks,
translation__language=lang, translation__language=lang,
......
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