From 41e71916f89e588f6c69a8c38858287aacfa60ac Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 12 Apr 2021 09:33:49 +0900 Subject: [PATCH] Fix excel import bug --- app/api/views/upload/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/views/upload/dataset.py b/app/api/views/upload/dataset.py index afb15aa3..bc1d9a51 100644 --- a/app/api/views/upload/dataset.py +++ b/app/api/views/upload/dataset.py @@ -152,7 +152,7 @@ class JSONLDataset(Dataset): class ExcelDataset(Dataset): def load(self, filename: str) -> Iterator[Record]: - records = pyexcel.iget_records(filename) + records = pyexcel.iget_records(file_name=filename) for line_num, row in enumerate(records, start=1): yield self.from_row(filename, row, line_num)