Improving word ad excluder

This commit is contained in:
kifixo
2022-12-19 23:04:42 +01:00
parent eb70dbe31b
commit cefa2aec20

View File

@@ -94,7 +94,7 @@ class Worker:
def is_title_key_word_excluded(self, title, excluded_words): def is_title_key_word_excluded(self, title, excluded_words):
for word in excluded_words: for word in excluded_words:
print("Checking '" + word + "' for title: '" + title) print("Checking '" + word + "' for title: '" + title)
if word in title.split()[0]: if word in title:
return True return True
return False return False