mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-05 02:04:46 +01:00
Bug #1914207: Average rating tooltip shows on hierarchical search Edit
This commit is contained in:
parent
d4638fc663
commit
7eb7cc4971
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ def tag_data(self, role):
|
|||
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…
Reference in a new issue