mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Catalogs: Fix multiple exclusion rules causing entries to be duplicated. Fixes #1281296 [Catalog shows duplicates of all entries](https://bugs.launchpad.net/calibre/+bug/1281296)
Merge branch 'master' of https://github.com/GRiker/calibre
This commit is contained in:
commit
dd54ccc0d0
@ -4722,7 +4722,6 @@ class CatalogBuilder(object):
|
||||
Return:
|
||||
(list): filtered data_set
|
||||
"""
|
||||
|
||||
filtered_data_set = []
|
||||
exclusion_pairs = []
|
||||
exclusion_set = []
|
||||
@ -4773,7 +4772,8 @@ class CatalogBuilder(object):
|
||||
filtered_data_set.remove(record)
|
||||
break
|
||||
else:
|
||||
filtered_data_set.append(record)
|
||||
if record not in filtered_data_set:
|
||||
filtered_data_set.append(record)
|
||||
else:
|
||||
if (record not in filtered_data_set and
|
||||
record not in exclusion_set):
|
||||
|
Loading…
x
Reference in New Issue
Block a user