diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-07 10:19:48 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-07 10:19:48 +0100 |
commit | c6bc9e5c6f98fa6275a205e68533e07bafd5bdd1 (patch) | |
tree | c9295890bcb1b20ad8b97f75c279b2b29c37721e | |
parent | The /feed page now displays the address of the feed. (diff) | |
download | newspipe-c6bc9e5c6f98fa6275a205e68533e07bafd5bdd1.tar.gz newspipe-c6bc9e5c6f98fa6275a205e68533e07bafd5bdd1.tar.bz2 newspipe-c6bc9e5c6f98fa6275a205e68533e07bafd5bdd1.zip |
Minor bugfix: the number of favorites articles wasn't passed to the /feed page.
-rwxr-xr-x | source/pyAggr3g470r.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index 76507afe..b54e8a48 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -263,6 +263,7 @@ class pyAggr3g470r(object): nb_articles_total = self.mongo.nb_articles() nb_unread_articles_feed = self.mongo.nb_unread_articles(feed_id) favorites = self.mongo.get_favorites(feed_id) + nb_favorites = self.mongo.nb_favorites(feed_id) except KeyError: return self.error("<p>This feed do not exists.</p>") @@ -280,7 +281,7 @@ class pyAggr3g470r(object): tmpl = lookup.get_template("feed.html") return tmpl.render(feed=feed, articles=articles, favorites=favorites, \ nb_articles_feed=nb_articles_feed, nb_articles_total=nb_articles_total, nb_unread_articles_feed=nb_unread_articles_feed, \ - first_post_date=first_article, end_post_date=last_article, \ + nb_favorites = nb_favorites, first_post_date=first_article, end_post_date=last_article, \ average=average, delta=delta, elapsed=elapsed, \ tag_cloud=tag_cloud, word_size=word_size, mail_to=conf.mail_to) @@ -598,4 +599,4 @@ if __name__ == '__main__': root = pyAggr3g470r() root.favicon_ico = cherrypy.tools.staticfile.handler(filename=os.path.join(conf.path + "/img/favicon.png")) cherrypy.config.update({'error_page.404': error_404}) - cherrypy.quickstart(root, "/" ,config=conf.path + "/cfg/cherrypy.cfg")
\ No newline at end of file + cherrypy.quickstart(root, "/" ,config=conf.path + "/cfg/cherrypy.cfg") |