mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 10:56:52 +08:00
excel: get keys from every sheet (#2796)
This commit is contained in:
@@ -29,10 +29,10 @@ class ExcelExtractor(BaseExtractor):
|
||||
def extract(self) -> list[Document]:
|
||||
"""Load from file path."""
|
||||
data = []
|
||||
keys = []
|
||||
wb = load_workbook(filename=self._file_path, read_only=True)
|
||||
# loop over all sheets
|
||||
for sheet in wb:
|
||||
keys = []
|
||||
if 'A1:A1' == sheet.calculate_dimension():
|
||||
sheet.reset_dimensions()
|
||||
for row in sheet.iter_rows(values_only=True):
|
||||
|
||||
Reference in New Issue
Block a user