blacklistfix
This commit is contained in:
parent
0ef94a493b
commit
9a4ef6c0f5
2 changed files with 2 additions and 2 deletions
|
|
@ -222,8 +222,7 @@ class LinkedInJobManager:
|
|||
|
||||
def is_blacklisted(self, job_title, company, link):
|
||||
job_title_words = job_title.lower().split(' ')
|
||||
company_lower = company.lower()
|
||||
title_blacklisted = any(word in job_title_words for word in self.title_blacklist)
|
||||
company_blacklisted = company_lower in (word.lower() for word in self.company_blacklist)
|
||||
company_blacklisted = company.strip().lower() in (word.strip().lower() for word in self.company_blacklist)
|
||||
link_seen = link in self.seen_jobs
|
||||
return title_blacklisted or company_blacklisted or link_seen
|
||||
Loading…
Add table
Add a link
Reference in a new issue