Browse Source

定时任务修改

Signed-off-by: Binren Zhnag <zhangbr@elab-plus.com>
Binren Zhnag 4 years ago
parent
commit
c1c7881b83
2 changed files with 3 additions and 3 deletions
  1. 2 2
      apscheduler_elab.py
  2. 1 1
      email_util.py

+ 2 - 2
apscheduler_elab.py

@@ -47,7 +47,7 @@ class Config(object):
             'trigger': 'cron',
             'day_of_week': '*',
             'hour': 8,
-            'minute': 00
+            'minute': 50
         }
     ]
 
@@ -90,7 +90,7 @@ class Funcs(object):
     @staticmethod
     def day_work_three():
         rp = ReportPush('bi_report')
-        rp.report_push_test(4)
+        rp.report_push(4)
 
     @staticmethod
     def minute_push_elab():

+ 1 - 1
email_util.py

@@ -114,5 +114,5 @@ class EmailUtil(object):
 
 if __name__ == '__main__':
     send_email = EmailUtil()
-    result = send_email.send_mail_by_admin('移动案场订阅日报', '的数据报告已经准备完成', '15773153135@163.com', r'D:\elab-code\elab_mvp\resources\module.xlsx', 'module.xlsx')
+    result = send_email.send_mail_by_admin('移动案场订阅日报', '的数据报告已经准备完成', '15773153135@163.com', r'D:\elab-code\elab_mvp\resources\module.xlsx', 'module.xlsx', send_email.url_dev,send_email.headers)
     print(result)