mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bug #1914207: Average rating tooltip shows on hierarchical search Edit
This commit is contained in:
parent
d4638fc663
commit
7eb7cc4971
@ -216,7 +216,7 @@ class TagTreeItem(object): # {{{
|
||||
ar = self.average_rating
|
||||
if ar:
|
||||
tt.append(_('Average rating for books in this category: %.1f') % ar)
|
||||
elif self.type == self.TAG and ar is not None:
|
||||
elif self.type == self.TAG and ar is not None and self.tag.category != 'search':
|
||||
tt.append(_('Books in this category are unrated'))
|
||||
if self.type == self.TAG and self.tag.category == 'search':
|
||||
tt.append(_('Search expression:') + ' ' + self.tag.search_expression)
|
||||
|
Loading…
x
Reference in New Issue
Block a user