diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-30 10:40:38 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-30 10:40:38 +0100 |
commit | 0af83751908aac66029848d7464c332008f47b72 (patch) | |
tree | a362437d6b4a62fdb97fd964975d61263f7edbf3 /pyaggr3g470r/views.py | |
parent | Database is now indexed in background. (diff) | |
download | newspipe-0af83751908aac66029848d7464c332008f47b72.tar.gz newspipe-0af83751908aac66029848d7464c332008f47b72.tar.bz2 newspipe-0af83751908aac66029848d7464c332008f47b72.zip |
Minor changes (comment and logging).
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index bec9f5ba..12f73791 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -494,9 +494,8 @@ def index_database(): Index all the database. """ if not conf.ON_HEROKU: - user = User.query.filter(User.id == g.user.id).first() try: - fastsearch.create_index(user.id) + fastsearch.create_index(g.user.id) flash(gettext('Indexing database...'), 'success') except Exception as e: flash(gettext('An error occured') + ' (%s).' % e, 'danger') |