diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-30 10:36:55 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-30 10:36:55 +0100 |
commit | 68f00aad2e6980533021532c25582f4931608657 (patch) | |
tree | 27df7b9618438242e06df67708fecbf1027ad3ad /pyaggr3g470r/views.py | |
parent | Do not check at all the content. (diff) | |
download | newspipe-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.py | 4 |
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')) |