diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-30 14:29:12 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-30 14:29:12 +0100 |
commit | 1f45444aa2da418c3c9dfe70e7ef39c0170b6f36 (patch) | |
tree | 88368039a5b63a98e9ae7ec37f20d50d3ba77234 /source/pyAggr3g470r.py | |
parent | Removed useless function in mongodb.py. (diff) | |
download | newspipe-1f45444aa2da418c3c9dfe70e7ef39c0170b6f36.tar.gz newspipe-1f45444aa2da418c3c9dfe70e7ef39c0170b6f36.tar.bz2 newspipe-1f45444aa2da418c3c9dfe70e7ef39c0170b6f36.zip |
Performance MongoDB imptovements (get_gavorites() function).
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-x | source/pyAggr3g470r.py | 2 |
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) |