From 3e96eb6ec6e8c71ffdabe9f76ad1a3db301e749e Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 19 七月 2023 14:19:38 +0800
Subject: [PATCH] bug修复

---
 utils/data_export_util.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils/data_export_util.py b/utils/data_export_util.py
index f290891..fdd0d7d 100644
--- a/utils/data_export_util.py
+++ b/utils/data_export_util.py
@@ -48,7 +48,7 @@
         num_dict[data["val"]["num"]].append(data)
 
     local_time = time.strftime("%Y%m%dT%H%M%S", time.localtime(time.time()))
-    file_name = "{}/{}_{}_{}.xls".format(dest_dir, code, gpcode_manager.get_code_name(code), local_time)
+    file_name = "{}/{}_{}.xls".format(dest_dir, code, local_time)
     file_name_txt = "{}/{}_{}.txt".format(dest_dir, code, local_time)
     openfile = open(file_name_txt, 'w')
     try:
@@ -56,7 +56,7 @@
             openfile.write(json.dumps(data) + "\n")
     finally:
         openfile.close()
-    wb = xlwt.Workbook()
+    wb = xlwt.Workbook(encoding="utf-8")
     ws = wb.add_sheet('sheet1')
     ws.write(0, 0, '搴忓彿')
     ws.write(0, 1, '鏃堕棿')

--
Gitblit v1.8.0