aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-02-01 10:57:40 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-02-01 10:57:40 +0100
commit3c010414c31fc93ccd5f40c4ae98c585e444bb86 (patch)
treef253d0637a8cae32ac371cfb42dc5beadf7898f5 /source
parentUpdated doc: added the new feature, language detection. (diff)
downloadnewspipe-3c010414c31fc93ccd5f40c4ae98c585e444bb86.tar.gz
newspipe-3c010414c31fc93ccd5f40c4ae98c585e444bb86.tar.bz2
newspipe-3c010414c31fc93ccd5f40c4ae98c585e444bb86.zip
Updated README with just information about the required modules for the language detection.
Diffstat (limited to 'source')
-rw-r--r--source/mongodb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/mongodb.py b/source/mongodb.py
index 93894154..1c5ddf2a 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)
@@ -281,4 +281,4 @@ if __name__ == "__main__":
# Drop the database
- #articles.drop_database() \ No newline at end of file
+ #articles.drop_database()
bgstack15