aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/crawler.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2014-04-23 14:09:10 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2014-04-23 14:09:10 +0200
commitf75bd130184f4a6d5a75279d6c5c0f8af9942da6 (patch)
tree990043a0d5b12b7904cba14546f64d032b5b9fc8 /pyaggr3g470r/crawler.py
parentAutoindexation of new articles (not on Heroku). (diff)
downloadnewspipe-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.py2
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
bgstack15