From 3c00407c61257391c06af0dfda5c75164213758b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Jun 2010 15:35:02 -0600 Subject: [PATCH] Fix #5974 (use HEAD for cover check, fix conversion tooltip display, disable sorting of metadata display, fix ratings display) --- src/calibre/library/database2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/database2.py b/src/calibre/library/database2.py index 2983ac5e58..a08e06378c 100644 --- a/src/calibre/library/database2.py +++ b/src/calibre/library/database2.py @@ -768,7 +768,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns): if datatype == 'rating': # eliminate the zero ratings line as well as count == 0 item_not_zero_func = (lambda x: x[1] > 0 and x[2] > 0) - formatter = (lambda x:u'\u2605'*int(round(x/2.))) + formatter = (lambda x:u'\u2605'*int(x/2)) elif category == 'authors': item_not_zero_func = (lambda x: x[2] > 0) # Clean up the authors strings to human-readable form