mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-11-04 14:07:49 +00:00
fix(rank): handle UTF-8 BOM in tracker CSV headers (#485)
This commit is contained in:
1 parent
362ef6a522
commit
6a308c5cc8
3 files changed
+25
-1
No files matched your search
+1
-1
@@ -107,7 +107,7 @@ def tracker_pairs(path: Path) -> set[tuple[str, str]]:
|
||||
import csv
|
||||
|
||||
pairs = set()
|
||||
with path.open(encoding="utf-8", newline="") as fh:
|
||||
with path.open(encoding="utf-8-sig", newline="") as fh:
|
||||
for row in csv.DictReader(fh):
|
||||
company, role = norm(row.get("company")), norm(row.get("role"))
|
||||
if company:
|
||||
|
||||
Reference in new issue
Block a user