Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fix/excel data format (#334)

Jyong3d14431b961e
diff --git a/api/core/index/readers/xlsx_parser.py b/api/core/index/readers/xlsx_parser.py
index 28fd249addd..6062e2ef3e6 100644
--- a/api/core/index/readers/xlsx_parser.py
+++ b/api/core/index/readers/xlsx_parser.py
@@ -25,7 +25,7 @@ class XLSXParser(BaseParser):
if all(v is None for v in row):
continue
if keys == []:
- keys = row
+ keys = list(map(str, row))
else:
- data.append(json.dumps(dict(zip(keys, row)), ensure_ascii=False))
- return data
+ data.append(json.dumps(dict(zip(keys, list(map(str, row)))), ensure_ascii=False))
+ return '\n\n'.join(data)