fix(rank): handle UTF-8 BOM in tracker CSV headers (#485)

This commit is contained in:
Ayobami Adegoke authored and GitHub committed 2026-09-21 08:21:04 +02:00
1 parent 362ef6a522
commit 6a308c5cc8
3 files changed
+25 -1

No files matched your search

+1 -1
View File
@@ -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: