From 2bea447de5d5eac3cab7a6e8e993534f9eefe632 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Wed, 23 Dec 2020 09:07:49 +0100 Subject: [PATCH] Fix show archived books --- cps/templates/shelf.html | 1 - cps/web.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cps/templates/shelf.html b/cps/templates/shelf.html index dab42d2f..32e3da4f 100644 --- a/cps/templates/shelf.html +++ b/cps/templates/shelf.html @@ -7,7 +7,6 @@ {% endif %} {% if g.user.is_authenticated %} {% if (g.user.role_edit_shelfs() and shelf.is_public ) or not shelf.is_public %} -
{{ _('Delete this Shelf') }}
{{ _('Edit Shelf') }} {% if entries.__len__() %} diff --git a/cps/web.py b/cps/web.py index 4baf82cb..10eb11f3 100644 --- a/cps/web.py +++ b/cps/web.py @@ -421,7 +421,7 @@ def render_books_list(data, sort, book_id, page): elif data == "language": return render_language_books(page, book_id, order) elif data == "archived": - return render_archived_books(page, book_id, order) + return render_archived_books(page, order) elif data == "search": term = (request.args.get('query') or '') offset = int(int(config.config_books_per_page) * (page - 1))