diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-22 08:36:40 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-04-22 08:36:40 +0200 |
commit | 58c89a2fe1e1118d6e37551f4d660d5b2e2e0b67 (patch) | |
tree | badbb2486b5cd6c639924a06a01fd185db2dbc7c /pyaggr3g470r/views | |
parent | Fixed the default configuration file. Minor update to the install.sh script. (diff) | |
download | newspipe-58c89a2fe1e1118d6e37551f4d660d5b2e2e0b67.tar.gz newspipe-58c89a2fe1e1118d6e37551f4d660d5b2e2e0b67.tar.bz2 newspipe-58c89a2fe1e1118d6e37551f4d660d5b2e2e0b67.zip |
Full text seaerch with Whoosh has been removed.
Diffstat (limited to 'pyaggr3g470r/views')
-rw-r--r-- | pyaggr3g470r/views/views.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py index 3429e6bb..9f4ef0b7 100644 --- a/pyaggr3g470r/views/views.py +++ b/pyaggr3g470r/views/views.py @@ -54,8 +54,6 @@ from pyaggr3g470r.forms import SignupForm, SigninForm, \ AddFeedForm, InformationMessageForm from pyaggr3g470r.controllers import UserController, FeedController, \ ArticleController -if not conf.ON_HEROKU: - import pyaggr3g470r.search as fastsearch Principal(app) @@ -399,10 +397,6 @@ def delete(article_id=None): if article is not None and article.source.subscriber.id == g.user.id: db.session.delete(article) db.session.commit() - try: - fastsearch.delete_article(g.user.id, article.feed_id, article.id) - except: - pass flash(gettext('Article') + ' ' + article.title + ' ' + gettext('deleted.'), 'success') return redirect(redirect_url()) else: @@ -441,23 +435,6 @@ def duplicates(feed_id=None): duplicates = utils.compare_documents(feed) return render_template('duplicates.html', duplicates=duplicates, feed=feed) -@app.route('/index_database', methods=['GET']) -@login_required -def index_database(): - """ - Index all the database. - """ - if not conf.ON_HEROKU: - try: - fastsearch.create_index(g.user.id) - flash(gettext('Indexing database...'), 'success') - except Exception as e: - flash(gettext('An error occured') + ' (%s).' % e, 'danger') - return redirect(url_for('home')) - else: - flash(gettext('Option not available on Heroku.'), 'success') - return redirect(url_for('home')) - @app.route('/export', methods=['GET']) @login_required def export_articles(): |