aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2012-11-30 14:29:12 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2012-11-30 14:29:12 +0100
commit1f45444aa2da418c3c9dfe70e7ef39c0170b6f36 (patch)
tree88368039a5b63a98e9ae7ec37f20d50d3ba77234 /source/pyAggr3g470r.py
parentRemoved useless function in mongodb.py. (diff)
downloadnewspipe-1f45444aa2da418c3c9dfe70e7ef39c0170b6f36.tar.gz
newspipe-1f45444aa2da418c3c9dfe70e7ef39c0170b6f36.tar.bz2
newspipe-1f45444aa2da418c3c9dfe70e7ef39c0170b6f36.zip
Performance MongoDB imptovements (get_gavorites() function).
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index 3f5132df..7455bc1c 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -750,7 +750,7 @@ class pyAggr3g470r(object):
feeds = self.mongo.get_all_feeds()
articles = {}
for feed in feeds:
- articles[feed["feed_id"]] = self.mongo.get_articles_from_collection(feed["feed_id"])
+ articles[feed["feed_id"]] = self.mongo.get_favorites(feed["feed_id"])
tmpl = lookup.get_template("favorites.html")
return tmpl.render(feeds=feeds, \
articles=articles)
bgstack15