Fix a bug in the counting of ratings from legacy databases

This commit is contained in:
Kovid Goyal 2015-11-23 21:22:54 +05:30
parent 4c425353bf
commit 6eb304c3be

View File

@ -161,7 +161,7 @@ def get_categories(dbcache, sort='name', book_ids=None, first_letter_sort=False)
for x in tuple(categories['rating']):
if r.name == x.name and r.id != x.id:
r.id_set |= x.id_set
r.count = r.count + x.count
r.count = len(r.id_set)
categories['rating'].remove(x)
break