[damned-lies] Exclude POT results from aggregated stats



commit 987acfaea321d4768b17b74b0fc306ee690e33c2
Author: Claude Paroz <claude 2xlibre net>
Date:   Tue May 18 19:56:33 2010 +0200

    Exclude POT results from aggregated stats

 stats/models.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index d64c8dc..ff7a18f 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -784,7 +784,7 @@ class Release(models.Model):
         cursor.execute(query, (dtype,))
         stats = {}; totals = [0] * len(releases)
         for row in cursor.fetchall():
-            if row[LOCALE] not in stats:
+            if row[LOCALE] and row[LOCALE] not in stats:
                 stats[row[LOCALE]] = [0] * len(releases)
                 stats[row[LOCALE]].insert(0, _(row[NAME])) # translated language name
             if row[LOCALE] is None: # POT stats



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]