From c478425b12b1c87c484f59e4dc309aab1f815e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Wed, 19 Oct 2022 20:05:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=A1=E8=AE=B0=E5=BD=95=E5=AF=BC?= =?UTF-8?q?=E5=87=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/utils/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/utils/export.py b/apps/utils/export.py index d3f5a861..5a1b61b5 100644 --- a/apps/utils/export.py +++ b/apps/utils/export.py @@ -101,7 +101,7 @@ def export_excel(field_data: list, data: list, FileName: str): row += 1 FileNameF = FileName + datetime.now().strftime('%Y%m%d%H%M%S') + '.xls' - path = '/media/temp' + path = '/media/temp/' pathRoot = settings.BASE_DIR + path if not os.path.exists(pathRoot): os.makedirs(pathRoot)