diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-28 13:16:03 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-28 13:16:03 +0100 |
commit | 96850d88c3febef5107aea6f87fa40cd1b19c31b (patch) | |
tree | b1fbfbb65767a6a0e12b8d40c0858cd4c537709e /source/pyAggr3g470r.py | |
parent | Little performance optimization. (diff) | |
download | newspipe-96850d88c3febef5107aea6f87fa40cd1b19c31b.tar.gz newspipe-96850d88c3febef5107aea6f87fa40cd1b19c31b.tar.bz2 newspipe-96850d88c3febef5107aea6f87fa40cd1b19c31b.zip |
Display the number of unread articles in the browser tab (with templates).
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-x | source/pyAggr3g470r.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index 5d9fc2f3..a399a23d 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -142,12 +142,6 @@ class pyAggr3g470r(object): nb_unread_articles = self.mongo.nb_unread_articles() nb_favorites = self.mongo.nb_favorites() nb_mail_notifications = self.mongo.nb_mail_notifications() - - # if there are unread articles, display the number in the tab of the browser - html = htmlheader((nb_unread_articles and \ - ['(' + str(nb_unread_articles) +')'] or \ - [""])[0]) - tmpl = lookup.get_template("index.html") return tmpl.render(feeds=feeds, nb_feeds=len(feeds), mongo=self.mongo, \ nb_favorites=nb_favorites, nb_unread_articles=nb_unread_articles, \ |