fix: parse size as int in TSV manifest
This commit is contained in:
parent
e0b4037a59
commit
9217a3f20b
@ -54,4 +54,8 @@ def load_manifest(path: Path) -> List[ManifestRecord]:
|
||||
|
||||
with path.open("r", newline="") as f:
|
||||
reader = csv.DictReader(f, delimiter="\t")
|
||||
return [ManifestRecord(**row) for row in reader]
|
||||
records: List[ManifestRecord] = []
|
||||
for row in reader:
|
||||
row["size"] = int(row["size"])
|
||||
records.append(ManifestRecord(**row))
|
||||
return records
|
||||
|
||||
Loading…
Reference in New Issue
Block a user