diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2014-04-23 14:09:10 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2014-04-23 14:09:10 +0200 |
commit | f75bd130184f4a6d5a75279d6c5c0f8af9942da6 (patch) | |
tree | 990043a0d5b12b7904cba14546f64d032b5b9fc8 /pyaggr3g470r/crawler.py | |
parent | Autoindexation of new articles (not on Heroku). (diff) | |
download | newspipe-f75bd130184f4a6d5a75279d6c5c0f8af9942da6.tar.gz newspipe-f75bd130184f4a6d5a75279d6c5c0f8af9942da6.tar.bz2 newspipe-f75bd130184f4a6d5a75279d6c5c0f8af9942da6.zip |
Separate indexes by users.
Diffstat (limited to 'pyaggr3g470r/crawler.py')
-rw-r--r-- | pyaggr3g470r/crawler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/crawler.py b/pyaggr3g470r/crawler.py index 661eddf0..dade3bea 100644 --- a/pyaggr3g470r/crawler.py +++ b/pyaggr3g470r/crawler.py @@ -244,7 +244,7 @@ class FeedGetter(object): for element in articles: article = Article.query.filter(Article.user_id == self.user.id, Article.link == element.link).first() try: - fastsearch.add_to_index([article], article.source) + fastsearch.add_to_index(self.user.id, [article], article.source) except: pyaggr3g470r_log.error("Problem during indexation.") return True
\ No newline at end of file |