minimal performance improvement
This commit is contained in:
parent
ea1763f1f7
commit
425b8588fd
|
@ -38,9 +38,9 @@ class FileScanner(HTMLParser):
|
||||||
title_words = set(self.file.parent.name.split('-'))
|
title_words = set(self.file.parent.name.split('-'))
|
||||||
for word in words:
|
for word in words:
|
||||||
tag_name = word.strip(".,:;!\"'<>()")
|
tag_name = word.strip(".,:;!\"'<>()")
|
||||||
word = tag_name.lower()
|
if not tag_name:
|
||||||
if not word:
|
|
||||||
continue
|
continue
|
||||||
|
word = tag_name.lower()
|
||||||
score = 10
|
score = 10
|
||||||
if word in EXCLUDED_WORDS:
|
if word in EXCLUDED_WORDS:
|
||||||
score = 0
|
score = 0
|
||||||
|
|
Loading…
Reference in a new issue