Skip to content
Browse files

fix prod l10n metric cron errors (again)

some prod translations' *parents* are missing modified
  • Loading branch information...
1 parent 951ce4d commit 38e7d92b2a25438b45f484eb6ba490dc2b3b90d5 @groovecoder groovecoder committed Feb 13, 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 38e7d92

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