[damned-lies] Obviously the previous commit was missing this...



commit 6bd80faf5ab71d86a0e7f30defd7920540d983bd
Author: Claude Paroz <claude 2xlibre net>
Date:   Thu Apr 7 18:28:45 2011 +0200

    Obviously the previous commit was missing this...

 stats/templatetags/stats_extras.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/stats/templatetags/stats_extras.py b/stats/templatetags/stats_extras.py
index 699d1d8..f916b33 100644
--- a/stats/templatetags/stats_extras.py
+++ b/stats/templatetags/stats_extras.py
@@ -56,9 +56,9 @@ def vis_stats(stat, scope='full'):
         <div class="untranslated" style="%(dir)s:%(tr_fu)spx; width: %(untrans)spx;"></div>
         """ % {
           'dir'  : get_language_bidi() and "right" or "left",
-          'trans': stat.tr_percentage(scope),
-          'fuzzy': stat.fu_percentage(scope),
-          'tr_fu': stat.tr_percentage(scope) + stat.fu_percentage(scope),
-          'untrans': stat.un_percentage(scope),
+          'trans': trans,
+          'fuzzy': fuzzy,
+          'tr_fu': trans + fuzzy,
+          'untrans': untrans,
         })
 



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