diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-02 11:26:07 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-02 11:26:07 +0100 |
commit | fdc8d24c941681f344f999cbb8266e275760db1c (patch) | |
tree | 5b73e362f95db2dfee2badc55bfa041ac22399fe /source/pyAggr3g470r.py | |
parent | Numbers are printed with commas as thousands separators. (diff) | |
download | newspipe-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-x | source/pyAggr3g470r.py | 4 |
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, \ |