aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-11-30 10:36:55 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-11-30 10:36:55 +0100
commit68f00aad2e6980533021532c25582f4931608657 (patch)
tree27df7b9618438242e06df67708fecbf1027ad3ad /pyaggr3g470r/views.py
parentDo not check at all the content. (diff)
downloadnewspipe-68f00aad2e6980533021532c25582f4931608657.tar.gz
newspipe-68f00aad2e6980533021532c25582f4931608657.tar.bz2
newspipe-68f00aad2e6980533021532c25582f4931608657.zip
Database is now indexed in background.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index aec5c976..bec9f5ba 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -496,8 +496,8 @@ def index_database():
if not conf.ON_HEROKU:
user = User.query.filter(User.id == g.user.id).first()
try:
- fastsearch.create_index(user)
- flash(gettext('Database indexed.'), 'success')
+ fastsearch.create_index(user.id)
+ flash(gettext('Indexing database...'), 'success')
except Exception as e:
flash(gettext('An error occured') + ' (%s).' % e, 'danger')
return redirect(url_for('home'))
bgstack15