Browse Source

接口逻辑调整

Signed-off-by: binren <zhangbr@elab-plus.com>
binren 4 years ago
parent
commit
6907ad8818
2 changed files with 11 additions and 11 deletions
  1. 2 2
      apscheduler_elab.py
  2. 9 9
      xlwt_util.py

+ 2 - 2
apscheduler_elab.py

@@ -46,8 +46,8 @@ class Config(object):
             'args': '',
             'trigger': 'cron',
             'day_of_week': '*',
-            'hour': 19,
-            'minute': 10
+            'hour': 20,
+            'minute': 00
         }
     ]
 

+ 9 - 9
xlwt_util.py

@@ -153,15 +153,15 @@ class XlwtUtil(object):
         for key in data_dict.keys():
             self.wb = xlwt.Workbook()
             values = data_dict.get(key)
-            data_1 = values.get('1')
-            data_2 = values.get('2')
-            data_3 = values.get('3')
-            data_4 = values.get('4')
-            data_5 = values.get('5')
-            data_6 = values.get('6')
-            data_7 = values.get('7')
-            data_8 = values.get('8')
-            mail = values.get('0')
+            data_1 = values.get(1)
+            data_2 = values.get(2)
+            data_3 = values.get(3)
+            data_4 = values.get(4)
+            data_5 = values.get(5)
+            data_6 = values.get(6)
+            data_7 = values.get(7)
+            data_8 = values.get(8)
+            mail = values.get(0)
             start_row = 0
             global title
             global sheet_name