aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/mongodb.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/mongodb.py b/source/mongodb.py
index 8d07bf38..64bd9218 100644
--- a/source/mongodb.py
+++ b/source/mongodb.py
@@ -54,13 +54,7 @@ class Articles(object):
Add article(s) in a collection.
"""
collection = self.db[str(feed_id)]
-
- try:
- collection.create_index([("article_date", pymongo.DESCENDING)], \
- {"unique":False, "sparse":False})
- except:
- print "Oups"
-
+ #collection.create_index([("article_date", pymongo.DESCENDING)], {"unique":False, "sparse":False})
for article in articles:
cursor = collection.find({"article_id":article["article_id"]})
if cursor.count() == 0:
bgstack15