1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-24 03:47:40 +00:00

Fixes from testrun

This commit is contained in:
OzzieIsaacs
2021-01-02 07:51:48 +01:00
parent b100d198e8
commit 9b50114852
3 changed files with 1188 additions and 7882 deletions

View File

@@ -616,13 +616,12 @@ def render_read_books(page, are_read, as_xml=False, order=None):
db_filter = and_(ub.ReadBook.user_id == int(current_user.id),
ub.ReadBook.read_status == ub.ReadBook.STATUS_FINISHED)
else:
db_filter = and_(ub.ReadBook.user_id == int(current_user.id),
coalesce(ub.ReadBook.read_status, 0) != ub.ReadBook.STATUS_FINISHED)
db_filter = coalesce(ub.ReadBook.read_status, 0) != ub.ReadBook.STATUS_FINISHED
entries, random, pagination = calibre_db.fill_indexpage(page, 0,
db.Books,
db_filter,
order,
ub.ReadBook, db.Books.id==ub.ReadBook.book_id)
ub.ReadBook, db.Books.id == ub.ReadBook.book_id)
else:
try:
if are_read: