Bugfix view None ratings caused error 500 in certain cases
This commit is contained in:
parent
859dac462b
commit
d659430116
|
@ -613,10 +613,9 @@ def render_ratings_books(page, book_id, order):
|
||||||
db_filter,
|
db_filter,
|
||||||
[order[0][0]],
|
[order[0][0]],
|
||||||
True, config.config_read_column,
|
True, config.config_read_column,
|
||||||
db.books_series_link,
|
db.books_ratings_link,
|
||||||
db.Books.id == db.books_series_link.c.book,
|
db.Books.id == db.books_ratings_link.c.book,
|
||||||
db.Series,
|
db.Ratings)
|
||||||
db.books_ratings_link, db.Ratings)
|
|
||||||
title = _("Rating: None")
|
title = _("Rating: None")
|
||||||
else:
|
else:
|
||||||
name = calibre_db.session.query(db.Ratings).filter(db.Ratings.id == book_id).first()
|
name = calibre_db.session.query(db.Ratings).filter(db.Ratings.id == book_id).first()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user