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