mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-09-17 00:26:26 +00:00
convert_salary_excel.py detected the company column via exact membership in COMPANY_PATTERNS, so common real-world headers like "Company Name" or "Employer Name" were never matched. parse_sheet then returned [] for that sheet, silently dropping it from salary_data.json (or exiting with no output for a single-sheet file). Route company-column detection through the existing header_matches() token matcher (already used for count/index detection). This only adds detections; inputs that already worked (bare "Company"/"Firma"/...) are unaffected. Adds a regression test in tests/test_convert_salary_excel.py that fails on master (returns []) and passes after the fix.