Move exclusion into 2nd stage.
This commit is contained in:
parent
73e958670d
commit
820471b49b
1 changed files with 2 additions and 2 deletions
|
@ -45,8 +45,6 @@ class ComicListUpdater(object):
|
||||||
raise
|
raise
|
||||||
|
|
||||||
def should_skip(self, name):
|
def should_skip(self, name):
|
||||||
if name in self.excluded_comics:
|
|
||||||
return True
|
|
||||||
if contains_case_insensitive(self.res, name):
|
if contains_case_insensitive(self.res, name):
|
||||||
# we cannot handle two comics that only differ in case
|
# we cannot handle two comics that only differ in case
|
||||||
print("INFO: skipping possible duplicate", repr(name),
|
print("INFO: skipping possible duplicate", repr(name),
|
||||||
|
@ -85,6 +83,8 @@ class ComicListUpdater(object):
|
||||||
with codecs.open(self.json, 'rb', 'utf-8') as f:
|
with codecs.open(self.json, 'rb', 'utf-8') as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
for name, entry in sorted(data.items(), key=first_lower):
|
for name, entry in sorted(data.items(), key=first_lower):
|
||||||
|
if name in self.excluded_comics:
|
||||||
|
continue
|
||||||
count = entry['count']
|
count = entry['count']
|
||||||
if count and count < min_comics:
|
if count and count < min_comics:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue