aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-02-01 11:04:34 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-02-01 11:04:34 +0100
commit7e1a1f1ba6c97592300fb4746b8dcede6cd416d9 (patch)
treeed05557f20647f95a7dc51a78888916f43de635d /source
parentUpdated README with just information about the required modules for the langu... (diff)
downloadnewspipe-7e1a1f1ba6c97592300fb4746b8dcede6cd416d9.tar.gz
newspipe-7e1a1f1ba6c97592300fb4746b8dcede6cd416d9.tar.bz2
newspipe-7e1a1f1ba6c97592300fb4746b8dcede6cd416d9.zip
Create a MongoDB index for each new collection.
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 1c5ddf2a..23f54c4f 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