mirror of
https://github.com/tomru/cram-luftdaten.git
synced 2026-03-03 06:27:23 +01:00
Ignore multiple csv headers when piping in multiple files
This commit is contained in:
@@ -75,6 +75,10 @@ NAME_MAP = {
|
||||
|
||||
READER = csv.DictReader(sys.stdin, delimiter=";")
|
||||
for row in READER:
|
||||
# catch multiple column headers
|
||||
if row["Time"] == "Time":
|
||||
continue
|
||||
|
||||
measurements = []
|
||||
for header, value in row.items():
|
||||
if header == "Time" or not value:
|
||||
|
||||
Reference in New Issue
Block a user