diff options
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 8ec3978f..f3f4636f 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -410,7 +410,7 @@ def index_database(): """ if not conf.ON_HEROKU: user = User.query.filter(User.id == g.user.id).first() - fastsearch.create_index(user.feeds) + fastsearch.create_index(user) flash('Database indexed.', 'success') return redirect(url_for('home')) else: @@ -459,7 +459,7 @@ def search(): result = [] query = request.args.get('query', None) if query != None: - results, nb_articles = fastsearch.search(query) + results, nb_articles = fastsearch.search(user.id, query) for feed_id in results: for feed in user.feeds: if feed.id == feed_id: |