From fdc8d24c941681f344f999cbb8266e275760db1c Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 2 Jan 2013 11:26:07 +0100 Subject: Numbers are printed with commas as thousands separators without taking into account the locale of the system. --- source/pyAggr3g470r.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/pyAggr3g470r.py') diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index 20b0ea20..a3c38ff0 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -133,8 +133,8 @@ class pyAggr3g470r(object): feeds = self.mongo.get_all_feeds() nb_mail_notifications = self.mongo.nb_mail_notifications() nb_favorites = self.mongo.nb_favorites() - nb_articles = locale.format("%d", self.mongo.nb_articles(), grouping=True) - nb_unread_articles = locale.format("%d", self.mongo.nb_unread_articles(), grouping=True) + nb_articles = format(self.mongo.nb_articles(), ",d") + nb_unread_articles = format(self.mongo.nb_unread_articles(), ",d") tmpl = lookup.get_template("management.html") return tmpl.render(feeds=feeds, nb_mail_notifications=nb_mail_notifications, \ nb_favorites=nb_favorites, nb_articles=nb_articles, \ -- cgit