tweak(cbacsv): Skip header row if it exists

This commit is contained in:
2026-01-20 00:41:08 +10:00
parent b97ede7371
commit f0d6a76b77

View File

@@ -205,6 +205,9 @@ class CBAConverter(Converter[CBARecord, CBAConfig]):
records = [] records = []
for row in reader: for row in reader:
if row[0].lower().strip() == "date":
# Skip header row
continue
record = self._make_record(CBACSVRow(*row)) record = self._make_record(CBACSVRow(*row))
records.append(record) records.append(record)
return records return records