diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-28 21:49:53 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-28 21:49:53 +0100 |
commit | 3c75e4bd17ed238ca0a38e858ee3013ddc2210c0 (patch) | |
tree | 455172dad7ea8aa1b368b463da15e424a53c87ff /pyaggr3g470r/views.py | |
parent | Improved layout of the template duplicate.html. (diff) | |
download | newspipe-3c75e4bd17ed238ca0a38e858ee3013ddc2210c0.tar.gz newspipe-3c75e4bd17ed238ca0a38e858ee3013ddc2210c0.tar.bz2 newspipe-3c75e4bd17ed238ca0a38e858ee3013ddc2210c0.zip |
Added a button to delete duplicate articles.
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 7e97560b..aec5c976 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -341,7 +341,7 @@ def article(article_id=None): article=article, previous_article=previous_article, next_article=next_article) flash(gettext("This article do not exist."), 'warning') - return redirect(redirect_url()) + return redirect(url_for('home')) @app.route('/mark_as/<string:new_value>', methods=['GET']) @@ -398,7 +398,7 @@ def delete(article_id=None): except: pass flash(gettext('Article') + ' ' + article.title + ' ' + gettext('deleted.'), 'success') - return redirect(url_for('home')) + return redirect(redirect_url()) else: flash(gettext('This article do not exist.'), 'danger') return redirect(url_for('home')) |