mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix for lp:1281296, multiple entries for books when processing multiple exclusion rules.
This commit is contained in:
parent
2691875730
commit
3aa7697f1a
@ -4722,7 +4722,6 @@ class CatalogBuilder(object):
|
|||||||
Return:
|
Return:
|
||||||
(list): filtered data_set
|
(list): filtered data_set
|
||||||
"""
|
"""
|
||||||
|
|
||||||
filtered_data_set = []
|
filtered_data_set = []
|
||||||
exclusion_pairs = []
|
exclusion_pairs = []
|
||||||
exclusion_set = []
|
exclusion_set = []
|
||||||
@ -4773,7 +4772,8 @@ class CatalogBuilder(object):
|
|||||||
filtered_data_set.remove(record)
|
filtered_data_set.remove(record)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
filtered_data_set.append(record)
|
if record not in filtered_data_set:
|
||||||
|
filtered_data_set.append(record)
|
||||||
else:
|
else:
|
||||||
if (record not in filtered_data_set and
|
if (record not in filtered_data_set and
|
||||||
record not in exclusion_set):
|
record not in exclusion_set):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user