diff options
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 69552108..41762d74 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -297,6 +297,10 @@ def delete(article_id=None): if article != None and article.source.subscriber.id == g.user.id: db.session.delete(article) db.session.commit() + try: + fastsearch.delete_article(article.feed_id, article.id) + except: + pass flash('Article "' + article.title + '" deleted.', 'success') return redirect(url_for('home')) else: |