aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-02 11:26:07 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-02 11:26:07 +0100
commitfdc8d24c941681f344f999cbb8266e275760db1c (patch)
tree5b73e362f95db2dfee2badc55bfa041ac22399fe /source/pyAggr3g470r.py
parentNumbers are printed with commas as thousands separators. (diff)
downloadnewspipe-fdc8d24c941681f344f999cbb8266e275760db1c.tar.gz
newspipe-fdc8d24c941681f344f999cbb8266e275760db1c.tar.bz2
newspipe-fdc8d24c941681f344f999cbb8266e275760db1c.zip
Numbers are printed with commas as thousands separators without taking into account the locale of the system.
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py4
1 files changed, 2 insertions, 2 deletions
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, \
bgstack15