diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-21 18:48:06 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-21 18:48:06 +0100 |
commit | 4be4f98f70144fb1e1aaec6b8fa3033196e292b3 (patch) | |
tree | 9cdeaa288c77df6fe5d28243b98a7b75440b9e6c /pyaggr3g470r/search.py | |
parent | No need to sort the list of articles by date. (diff) | |
download | newspipe-4be4f98f70144fb1e1aaec6b8fa3033196e292b3.tar.gz newspipe-4be4f98f70144fb1e1aaec6b8fa3033196e292b3.tar.bz2 newspipe-4be4f98f70144fb1e1aaec6b8fa3033196e292b3.zip |
Added an option to index all the database.
Diffstat (limited to 'pyaggr3g470r/search.py')
-rw-r--r-- | pyaggr3g470r/search.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pyaggr3g470r/search.py b/pyaggr3g470r/search.py index 56aef3f6..4a8df1d9 100644 --- a/pyaggr3g470r/search.py +++ b/pyaggr3g470r/search.py @@ -47,11 +47,10 @@ schema = Schema(title=TEXT(stored=True), \ article_id=TEXT(stored=True), \ feed_id=TEXT(stored=True)) -def create_index(): +def create_index(feeds): """ Creates the index. """ - feeds = models.Feed.objects() if not os.path.exists(indexdir): os.makedirs(indexdir) ix = create_in(indexdir, schema) |