tweak(cbacsv): Skip header row if it exists
This commit is contained in:
@@ -205,6 +205,9 @@ class CBAConverter(Converter[CBARecord, CBAConfig]):
|
||||
|
||||
records = []
|
||||
for row in reader:
|
||||
if row[0].lower().strip() == "date":
|
||||
# Skip header row
|
||||
continue
|
||||
record = self._make_record(CBACSVRow(*row))
|
||||
records.append(record)
|
||||
return records
|
||||
|
||||
Reference in New Issue
Block a user