新功能(dvadmin): 导入问题修复

pull/36/head
李强 2021-07-03 19:33:36 +08:00
parent 306a72e8be
commit 164e13fe50
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ def excel_to_data(file_url, field_data):
:return: :return:
""" """
# 读取excel 文件 # 读取excel 文件
data = xlrd.open_workbook(os.path.join(settings.BASE_DIR, *file_url.split(os.sep))) data = xlrd.open_workbook(os.path.join(settings.BASE_DIR.replace('\\', os.sep), *file_url.split(os.sep)))
table = data.sheets()[0] table = data.sheets()[0]
# 创建一个空列表存储Excel的数据 # 创建一个空列表存储Excel的数据
tables = [] tables = []