aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-03-15 08:09:10 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-03-15 08:09:10 +0100
commit88a4fb7d72fb4e7324dfbd6eb99fd78ce2b404c2 (patch)
tree268c8a31029987ec4c6813fede4e1f372375f814
parentRemoved useless empty lines in the generated CSS. (diff)
downloadnewspipe-88a4fb7d72fb4e7324dfbd6eb99fd78ce2b404c2.tar.gz
newspipe-88a4fb7d72fb4e7324dfbd6eb99fd78ce2b404c2.tar.bz2
newspipe-88a4fb7d72fb4e7324dfbd6eb99fd78ce2b404c2.zip
Creation of an index when creating a new collection.
-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