|
@@ -1,6 +1,7 @@
|
|
|
# -*- coding: utf-8 -*-
|
|
|
from panda_util import PandaUtil
|
|
|
import time
|
|
|
+from report_push import ReportPush
|
|
|
|
|
|
|
|
|
class Config(object):
|
|
@@ -17,7 +18,8 @@ class Config(object):
|
|
|
'args': '',
|
|
|
'trigger': 'cron',
|
|
|
'day_of_week': '*',
|
|
|
- 'hour': 9
|
|
|
+ 'hour': 8,
|
|
|
+ 'minute': 50
|
|
|
},
|
|
|
{
|
|
|
'id': 'week_push_one',
|
|
@@ -57,15 +59,18 @@ class Config(object):
|
|
|
class Funcs(object):
|
|
|
@staticmethod
|
|
|
def day_push():
|
|
|
- print(time.time())
|
|
|
+ rp = ReportPush('bi_report')
|
|
|
+ rp.report_push(1)
|
|
|
|
|
|
@staticmethod
|
|
|
def week_push_one():
|
|
|
- print(time.time())
|
|
|
+ rp = ReportPush('bi_report')
|
|
|
+ rp.report_push(2)
|
|
|
|
|
|
@staticmethod
|
|
|
def week_push_two():
|
|
|
- print(time.time())
|
|
|
+ rp = ReportPush('bi_report')
|
|
|
+ rp.report_push(2)
|
|
|
|
|
|
@staticmethod
|
|
|
def minute_push_elab():
|