From daed6af0255ab9798a18ca5a2cdb42dec54143d1 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 12 Jun 2014 22:10:39 +0200 Subject: Reseolved 'Page Not Found' error when clicking on 'Mark all as read'. --- pyaggr3g470r/views.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 8a3ccbe9..c8ed0b79 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -237,7 +237,7 @@ def home(): unread=dict(unread), articles=articles.all()) -@app.route('/article/redirect/', methods=['GET']) +@app.route('/article/redirect//', methods=['GET']) @login_required def redirect_to_article(article_id): article = Article.query.filter(Article.id == article_id, @@ -250,7 +250,7 @@ def redirect_to_article(article_id): @app.route('/fetch/', methods=['GET']) -@app.route('/fetch/', methods=['GET']) +@app.route('/fetch//', methods=['GET']) @login_required def fetch(feed_id=None): """ @@ -308,7 +308,7 @@ def feed(feed_id=None): first_post_date=first_article, end_post_date=last_article , nb_articles=nb_articles, \ average=average, delta=delta, elapsed=elapsed) -@app.route('/article/', methods=['GET']) +@app.route('/article//', methods=['GET']) @login_required def article(article_id=None): """ @@ -334,9 +334,9 @@ def article(article_id=None): return redirect(redirect_url()) -@app.route('/mark_as/', methods=['GET']) -@app.route('/mark_as//feed/', methods=['GET']) -@app.route('/mark_as//article/', methods=['GET']) +@app.route('/mark_as//', methods=['GET']) +@app.route('/mark_as//feed//', methods=['GET']) +@app.route('/mark_as//article//', methods=['GET']) @login_required @feed_access_required def mark_as(new_value='read', feed_id=None, article_id=None): @@ -360,7 +360,7 @@ def mark_as(new_value='read', feed_id=None, article_id=None): return redirect(redirect_url()) return redirect(url_for('home')) -@app.route('/like/', methods=['GET']) +@app.route('/like//', methods=['GET']) @login_required def like(article_id=None): """ -- cgit