aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-07 10:19:48 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-07 10:19:48 +0100
commitc6bc9e5c6f98fa6275a205e68533e07bafd5bdd1 (patch)
treec9295890bcb1b20ad8b97f75c279b2b29c37721e
parentThe /feed page now displays the address of the feed. (diff)
downloadnewspipe-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-xsource/pyAggr3g470r.py5
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")
bgstack15