aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--source/mongodb.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index d1baef6c..37459b0e 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,7 @@ Features
* e-mail notification;
* export articles to HTML, EPUB, PDF or raw text;
* favorite articles;
+* language detection;
* share articles with Diaspora, Google +, Pinboard, Identi.ca, Digg, reddit, Scoopeo, and Blogmarks;
* generation of QR codes with URLs of articles.
@@ -38,6 +39,7 @@ Optional module
These modules are not required but enables more features:
+* [guess_language](https://bitbucket.org/spirit/guess_language/) and [PyEnchant](http://pypi.python.org/pypi/pyenchant) for the language detection;
* lxml and Genshi;
* Python Imaging Library for the generation of QR codes.
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