more and better models
This commit is contained in:
+2
-4
@@ -11,9 +11,7 @@ def reader_raw(path: Path):
|
||||
with path.open() as fid:
|
||||
return list(csv.DictReader(fid))
|
||||
|
||||
|
||||
def reader_b4w(path: Path):
|
||||
raw = reader_raw(path)
|
||||
return list(map(B4wExport.from_dict, raw))
|
||||
|
||||
|
||||
|
||||
return list(map(B4wExport.model_validate, raw))
|
||||
|
||||
Reference in New Issue
Block a user