fix for csv support

This commit is contained in:
2025-04-25 17:35:17 -04:00
parent 6672536508
commit c1628f5dfe

View File

@@ -54,7 +54,7 @@ def read_and_normalize_csv_or_xlsx(input_file: Union[List[TextIO], List[Path], T
if isinstance(f, Path):
if f.suffix.lower() == ".csv":
with f.open("r", encoding="utf-8") as f:
reader = csv.DictReader(f)
reader = list(csv.DictReader(f))
elif f.suffix.lower() == ".xlsx":
output = StringIO()