Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #865 from groovecoder/fix-l10n-metric-cron
Browse files Browse the repository at this point in the history
fix prod l10n metric cron errors (again)
  • Loading branch information
lmorchard committed Feb 14, 2013
2 parents e33b2d6 + 38e7d92 commit b27896f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/kpi/cron.py
Expand Up @@ -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

Expand Down

0 comments on commit b27896f

Please sign in to comment.