Преглед изворни кода

文件储存路径修改

Signed-off-by: binren <zhangbr@elab-plus.com>
binren пре 4 година
родитељ
комит
4e877c45c1
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      jianye_report.py
  2. 1 1
      xlwt_util.py

+ 1 - 1
jianye_report.py

@@ -327,7 +327,7 @@ class JianYeReport(object):
         brand_table_one = None
         brand_table_two = None
         try:
-            save_path = FileUtil().save_path_create()
+            save_path = '/tmp'
             send_data = []
             if task_key == 12:
                 brand_table_one = self.brand_data()

+ 1 - 1
xlwt_util.py

@@ -131,7 +131,7 @@ class XlwtUtil(object):
         """
         day = '移动案场订阅日报_{}_{}.xls'
         week = '移动案场订阅周报_{}_{}至{}.xls'
-        new_file_name = self.save_path_create()
+        new_file_name = '/tmp'
         if task_key in (1, 4):
             day = day.format(name, time_range[0])
             return ['{}/{}'.format(new_file_name, day), day]