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)