aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-03-19 14:01:08 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-03-19 14:01:08 +0100
commitbafb1b92271e3e17e398c3985a0ecef393dc98d8 (patch)
tree70d85d215bb230b27d9bbf0a9a5d9dd505222a54 /source
parentAdded new views: subscriptions in order to list subscribed feeds. (diff)
downloadnewspipe-bafb1b92271e3e17e398c3985a0ecef393dc98d8.tar.gz
newspipe-bafb1b92271e3e17e398c3985a0ecef393dc98d8.tar.bz2
newspipe-bafb1b92271e3e17e398c3985a0ecef393dc98d8.zip
MongoDB index.
Diffstat (limited to 'source')
-rw-r--r--source/mongodb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/mongodb.py b/source/mongodb.py
index 9e64fe4f..38081780 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