Spaces:
Running
Running
Excel none issue solved
Browse files
app.py
CHANGED
@@ -65,7 +65,8 @@ def read_document(file):
|
|
65 |
for sheet in wb.worksheets:
|
66 |
for row in sheet.rows:
|
67 |
for cell in row:
|
68 |
-
|
|
|
69 |
return content
|
70 |
except Exception as e:
|
71 |
return f"Error reading XLSX: {e}"
|
|
|
65 |
for sheet in wb.worksheets:
|
66 |
for row in sheet.rows:
|
67 |
for cell in row:
|
68 |
+
if cell.value is not None:
|
69 |
+
content += str(cell.value) + ' '
|
70 |
return content
|
71 |
except Exception as e:
|
72 |
return f"Error reading XLSX: {e}"
|