tweak(cbacsv): Skip header row if it exists
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user