1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-23 19:37:40 +00:00

Shelfs are now paginated (sorting buttons are disabled)

Changed gevent dependencys
This commit is contained in:
Ozzieisaacs
2020-12-13 18:32:19 +01:00
parent d64009e23e
commit 62da469fd1
4 changed files with 47 additions and 36 deletions

View File

@@ -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, order)
return render_archived_books(page, book_id, order)
elif data == "search":
term = (request.args.get('query') or '')
offset = int(int(config.config_books_per_page) * (page - 1))
@@ -430,8 +430,6 @@ def render_books_list(data, sort, book_id, page):
term = json.loads(flask_session['query'])
offset = int(int(config.config_books_per_page) * (page - 1))
return render_adv_search_results(term, offset, order, config.config_books_per_page)
elif data == "shelf":
return shelf.show_shelf(1, book_id)
else:
website = data or "newest"
entries, random, pagination = calibre_db.fill_indexpage(page, 0, db.Books, True, order)