fix: 临时文件默认temp

This commit is contained in:
caoqianming 2023-09-11 10:52:09 +08:00
parent bc919c8970
commit 19239c6b42
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ def export_excel_img(field_data: list, data: list, FileName: str):
ws.add_image(i[0], i[1])
FileNameF = FileName + datetime.now().strftime('%Y%m%d%H%M%S') + '.xlsx'
path = '/media/temp/'
path = '/temp/'
pathRoot = settings.BASE_DIR + path
if not os.path.exists(pathRoot):
os.makedirs(pathRoot)