aboutsummaryrefslogtreecommitdiff
path: root/source/mongodb.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-03-19 14:00:46 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-03-19 14:00:46 +0100
commitb7fd7b15968e3a29e75d479a88c8cd9e66c4e194 (patch)
treee103675b5674c8187768781d63f88a1adbe53e74 /source/mongodb.py
parentMongoDB index. (diff)
downloadnewspipe-b7fd7b15968e3a29e75d479a88c8cd9e66c4e194.tar.gz
newspipe-b7fd7b15968e3a29e75d479a88c8cd9e66c4e194.tar.bz2
newspipe-b7fd7b15968e3a29e75d479a88c8cd9e66c4e194.zip
Added new views: subscriptions in order to list subscribed feeds.
Diffstat (limited to 'source/mongodb.py')
-rw-r--r--source/mongodb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/mongodb.py b/source/mongodb.py
index 38081780..9e64fe4f 100644
--- a/source/mongodb.py
+++ b/source/mongodb.py
@@ -45,7 +45,7 @@ class Articles(object):
Creates a new collection for a new feed.
"""
collection = self.db[new_collection["feed_id"]]
- collection.create_index([("article_date", pymongo.DESCENDING)], {"unique":False, "sparse":False})
+ #collection.create_index([("article_date", pymongo.DESCENDING)], {"unique":False, "sparse":False})
collection.ensure_index('article_content', pymongo.ASCENDING)
collection.insert(new_collection)
bgstack15