From 211c3b16dd54ac6d0a3b34573f83b3040682db74 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Wed, 15 Nov 2017 07:40:17 +0100 Subject: [PATCH] Fix fror #388 --- cps/web.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cps/web.py b/cps/web.py index d6b983f7..c5d20e04 100755 --- a/cps/web.py +++ b/cps/web.py @@ -1048,7 +1048,7 @@ def index(page): @app.route('/books/newest/page/') @login_required_if_no_ano def newest_books(page): - if current_cuser.show_sorted(): + if current_user.show_sorted(): entries, random, pagination = fill_indexpage(page, db.Books, True, db.Books.pubdate.desc()) return render_title_template('index.html', random=random, entries=entries, pagination=pagination, title=_(u"Newest Books")) @@ -1059,7 +1059,7 @@ def newest_books(page): @app.route('/books/oldest/page/') @login_required_if_no_ano def oldest_books(page): - if current_cuser.show_sorted(): + if current_user.show_sorted(): entries, random, pagination = fill_indexpage(page, db.Books, True, db.Books.pubdate) return render_title_template('index.html', random=random, entries=entries, pagination=pagination, title=_(u"Oldest Books")) @@ -1071,7 +1071,7 @@ def oldest_books(page): @app.route('/books/a-z/page/') @login_required_if_no_ano def titles_ascending(page): - if current_cuser.show_sorted(): + if current_user.show_sorted(): entries, random, pagination = fill_indexpage(page, db.Books, True, db.Books.sort) return render_title_template('index.html', random=random, entries=entries, pagination=pagination, title=_(u"Books (A-Z)"))