diff --git a/linkedIn_job_manager.py b/linkedIn_job_manager.py index 04833a4..edf3f54 100644 --- a/linkedIn_job_manager.py +++ b/linkedIn_job_manager.py @@ -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 \ No newline at end of file diff --git a/main.py b/main.py index bc2d44f..13c60a5 100644 --- a/main.py +++ b/main.py @@ -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):