Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #865 from groovecoder/fix-l10n-metric-cron

fix prod l10n metric cron errors (again)
  • Loading branch information...
commit b27896f2b52b5df8705ce83ae8e3928439183e0e 2 parents e33b2d6 + 38e7d92
@lmorchard lmorchard authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  apps/kpi/cron.py
View
1  apps/kpi/cron.py
@@ -17,6 +17,7 @@ def update_l10n_metric():
translations = Document.objects.exclude(locale='en-US')
for translation in translations:
if (hasattr(translation, 'modified') and
+ hasattr(translation.parent, 'modified') and
translation.modified > translation.parent.modified):
up_to_date_translations += 1
Please sign in to comment.
Something went wrong with that request. Please try again.