blacklistfix

This commit is contained in:
feder-cr 2024-08-06 03:50:18 +01:00
parent 0ef94a493b
commit 9a4ef6c0f5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -32,6 +32,7 @@ class ConfigValidator:
raise ConfigError(f"Error reading config file {config_yaml_path}: {exc}")
except FileNotFoundError:
raise ConfigError(f"Config file not found: {config_yaml_path}")
# Validate 'remote'
if 'remote' not in parameters or not isinstance(parameters['remote'], bool):