From 5fe3812424393e911b46b487c019260589853b20 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 3 May 2010 09:47:38 -0600 Subject: [PATCH] ... --- src/calibre/library/database2.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/calibre/library/database2.py b/src/calibre/library/database2.py index e024638ae3..729c531897 100644 --- a/src/calibre/library/database2.py +++ b/src/calibre/library/database2.py @@ -632,11 +632,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns): else: icon = icon_map['*custom'] tooltip = self.custom_column_label_map[category]['name'] - if ids is None: # no filtering - categories[category] = [Tag(r[1], count=r[2], id=r[0], icon=icon, tooltip = tooltip) - for r in data if r[2] > 0] - else: # filter out zero-count tags - categories[category] = [Tag(r[1], count=r[2], id=r[0], icon=icon, tooltip = tooltip) + categories[category] = [Tag(r[1], count=r[2], id=r[0], icon=icon, tooltip = tooltip) for r in data if r[2] > 0] categories['format'] = [] for fmt in self.conn.get('SELECT DISTINCT format FROM data'):