Skip to content
Browse files

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

fix prod l10n metric cron errors (again)
  • Loading branch information...
2 parents e33b2d6 + 38e7d92 commit b27896f2b52b5df8705ce83ae8e3928439183e0e @lmorchard lmorchard committed Feb 14, 2013
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

0 comments on commit b27896f

Please sign in to comment.
Something went wrong with that request. Please try again.