mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
1c0f8a4c02
@ -213,7 +213,7 @@ def get_categories(dbcache, sort='name', book_ids=None, first_letter_sort=False)
|
|||||||
total_rating = 0
|
total_rating = 0
|
||||||
count = 0
|
count = 0
|
||||||
for id_ in t.id_set:
|
for id_ in t.id_set:
|
||||||
rating = book_rating_map[id_]
|
rating = book_rating_map.get(id_, 0)
|
||||||
if rating:
|
if rating:
|
||||||
total_rating += rating/2
|
total_rating += rating/2
|
||||||
count += 1
|
count += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user