From f926e58891c3085b9177008ed8bd7a4d8c927243 Mon Sep 17 00:00:00 2001 From: aribes Date: Thu, 16 Apr 2020 11:36:06 +1000 Subject: [PATCH] Changing ordering logic when showing books from a category --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 9a7966e7..ac724040 100644 --- a/cps/web.py +++ b/cps/web.py @@ -709,7 +709,7 @@ def render_category_books(page, book_id, order): name = db.session.query(db.Tags).filter(db.Tags.id == book_id).first() if name: entries, random, pagination = fill_indexpage(page, db.Books, db.Books.tags.any(db.Tags.id == book_id), - [db.Series.name, db.Books.series_index, order[0]], + [order[0], db.Series.name, db.Books.series_index], db.books_series_link, db.Series) return render_title_template('index.html', random=random, entries=entries, pagination=pagination, id=book_id, title=_(u"Category: %(name)s", name=name.name), page="category")