diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-03-19 14:01:08 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-03-19 14:01:08 +0100 |
commit | bafb1b92271e3e17e398c3985a0ecef393dc98d8 (patch) | |
tree | 70d85d215bb230b27d9bbf0a9a5d9dd505222a54 | |
parent | Added new views: subscriptions in order to list subscribed feeds. (diff) | |
download | newspipe-bafb1b92271e3e17e398c3985a0ecef393dc98d8.tar.gz newspipe-bafb1b92271e3e17e398c3985a0ecef393dc98d8.tar.bz2 newspipe-bafb1b92271e3e17e398c3985a0ecef393dc98d8.zip |
MongoDB index.
-rw-r--r-- | source/mongodb.py | 2 |
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) |