aboutsummaryrefslogtreecommitdiff
path: root/mongodb.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-03-05 19:04:13 +0100
committercedricbonhomme <devnull@localhost>2012-03-05 19:04:13 +0100
commite9f4078a2cbdba09be8beb6c450f7cbe00d850e3 (patch)
tree0dcaa0cde3e96d9cc0963a8a63204467da806e6c /mongodb.py
parentCase insensitive sorting of collections by dict id. (diff)
downloadnewspipe-e9f4078a2cbdba09be8beb6c450f7cbe00d850e3.tar.gz
newspipe-e9f4078a2cbdba09be8beb6c450f7cbe00d850e3.tar.bz2
newspipe-e9f4078a2cbdba09be8beb6c450f7cbe00d850e3.zip
get_all_articles() now returns a list of dict instead of returning a list of cursors.
Diffstat (limited to 'mongodb.py')
-rw-r--r--mongodb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mongodb.py b/mongodb.py
index ac107c22..0eb4e002 100644
--- a/mongodb.py
+++ b/mongodb.py
@@ -68,7 +68,7 @@ class Articles(object):
collections = self.db.collection_names()
for collection_name in collections:
collection = self.db[collection_name]
- articles.append(collection)
+ articles.extend([article for article in collection.find({'type':1})])
return articles
def get_article(self, feed_id, article_id):
bgstack15