Skip to content

Fix company blacklist matching to use jobDetail instead of jobTitle#104

Draft
cursor[bot] wants to merge 1 commit intomainfrom
cursor/daily-code-improvements-7840
Draft

Fix company blacklist matching to use jobDetail instead of jobTitle#104
cursor[bot] wants to merge 1 commit intomainfrom
cursor/daily-code-improvements-7840

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor Bot commented Apr 3, 2026

Overview

Fixed a bug in the company blacklist filtering logic where the filter was checking against jobTitle instead of jobDetail.

Change Details

  • File: linkedin.py (line 335)
  • Fix: Changed blacklist company matching from jobTitle.lower() to jobDetail.lower()

Why This Matters

The config.blacklistCompanies list contains company names that should not be applied for. These company names appear in the job detail section, not in the job title. By matching against jobTitle, the blacklist was ineffective and blacklisted companies were not being properly filtered out.

Now the blacklist correctly matches against the job detail text where company information is actually located.

Testing

This is a single-line fix that corrects the logic to match the intended behavior. The change is minimal and focused on making the company blacklist feature work as intended.

Open in Web View Automation 

The blacklistCompanies filter should match against the job detail text where
company information is located, not the job title. This ensures companies in
the blacklist are properly detected and flagged.

Co-authored-by: Ongun Demirag <ongun@ongundemirag.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant