Skip to content

Commit

Permalink
+types newrecord
Browse files Browse the repository at this point in the history
  • Loading branch information
gdraheim committed Jul 30, 2024
1 parent c23eae4 commit 64ad0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabxlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,6 @@ def extension(filename: str) -> Optional[str]:
reader = csv.DictReader(inp, delimiter=tab)
for nextrecord in reader:
newrecord: Dict[str, CellValue] = nextrecord.copy()
data.append(newrecord)
for nam, val in nextrecord.items():
if val.strip() == none_string:
newrecord[nam] = None
Expand All @@ -1067,6 +1066,7 @@ def extension(filename: str) -> Optional[str]:
newrecord[nam] = Time.strptime("%Y-%m%d", val).date()
except:
newrecord[nam] = val.strip()
data.append(newrecord)
return TabText(data, list(reader.fieldnames if reader.fieldnames else []))
# must have headers
lookingfor = "headers"
Expand Down

0 comments on commit 64ad0ea

Please sign in to comment.