aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-11 19:28:32 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-11 19:28:32 +0100
commit40e7185e8c10c7ef017ef94a3c9189927d3acc39 (patch)
tree3853c5af3d1f6877cc41e2831db1fc92904e51d7 /source
parentSearch function now using MongoDB indexed fulltext searching. (diff)
downloadnewspipe-40e7185e8c10c7ef017ef94a3c9189927d3acc39.tar.gz
newspipe-40e7185e8c10c7ef017ef94a3c9189927d3acc39.tar.bz2
newspipe-40e7185e8c10c7ef017ef94a3c9189927d3acc39.zip
Removed useless comments.
Diffstat (limited to 'source')
-rw-r--r--source/mongodb.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/mongodb.py b/source/mongodb.py
index e91fb90b..9ee3e8ea 100644
--- a/source/mongodb.py
+++ b/source/mongodb.py
@@ -56,9 +56,6 @@ class Articles(object):
Add article(s) in a collection.
"""
collection = self.db[str(feed_id)]
- #collection.create_index([("article_date", pymongo.DESCENDING)], {"unique":False, "sparse":False})
- #collection.ensure_index('article_content', pymongo.ASCENDING)
- print(collection.index_information())
for article in articles:
cursor = collection.find({"article_id":article["article_id"]})
if cursor.count() == 0:
bgstack15