From 7526b0dcb4a0822113eb265d81be32601c95ea92 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Wed, 28 Nov 2018 18:28:55 +0100 Subject: [PATCH] Fix #623, #715 --- cps/web.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cps/web.py b/cps/web.py index 558479cf..d5633e01 100644 --- a/cps/web.py +++ b/cps/web.py @@ -1482,19 +1482,15 @@ def series_list(): @app.route("/series//", defaults={'page': 1}) -@app.route("/series//'") +@app.route("/series//") @login_required_if_no_ano def series(book_id, page): name = db.session.query(db.Series).filter(db.Series.id == book_id).first() if name: entries, random, pagination = fill_indexpage(page, db.Books, db.Books.series.any(db.Series.id == book_id), [db.Books.series_index]) - if entries: - return render_title_template('index.html', random=random, pagination=pagination, entries=entries, + return render_title_template('index.html', random=random, pagination=pagination, entries=entries, title=_(u"Series: %(serie)s", serie=name.name), page="series") - else: - flash(_(u"Error opening eBook. File does not exist or file is not accessible:"), category="error") - return redirect(url_for("index")) else: abort(404)