more and better models

This commit is contained in:
2026-09-02 22:55:48 +02:00
parent f758d7b2a5
commit afadfb0475
3 changed files with 68 additions and 7 deletions
+2 -4
View File
@@ -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))