mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 20:06:22 +01:00
Merge branch 'master' of https://github.com/cbhaley/calibre
Fix #1914207 [Tag Browser: Average rating tooltip shows on hierarchical search](https://bugs.launchpad.net/calibre/+bug/1914207)
This commit is contained in:
commit
16f2e83b5c
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