aboutsummaryrefslogtreecommitdiff
path: root/source/mongodb.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-02-14 08:05:33 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-02-14 08:05:33 +0100
commit0e4f4a889ebf61a0ac4e296fd997900a3a0c40dd (patch)
treeb67388789457f6c06ecc5b78f9d2edfb94bb083c /source/mongodb.py
parentRemoved 'width=50%' parameter for the page of exported articles. (diff)
downloadnewspipe-0e4f4a889ebf61a0ac4e296fd997900a3a0c40dd.tar.gz
newspipe-0e4f4a889ebf61a0ac4e296fd997900a3a0c40dd.tar.bz2
newspipe-0e4f4a889ebf61a0ac4e296fd997900a3a0c40dd.zip
MongoDB index on 'article_date' for each new collection.
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 22d82b86..7d593e46 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