Fix #1361 (covers of archived books not shown)

pull/1377/head
Ozzieisaacs 5 years ago
parent e706e1a68d
commit 03d134697c

@ -493,7 +493,7 @@ def get_cover_on_failure(use_generic_cover):
def get_book_cover(book_id):
book = db.session.query(db.Books).filter(db.Books.id == book_id).filter(common_filters()).first()
book = db.session.query(db.Books).filter(db.Books.id == book_id).filter(common_filters(allow_show_archived=True)).first()
return get_book_cover_internal(book, use_generic_cover_on_failure=True)

Loading…
Cancel
Save