Browse Source

apscheduler_elab: 定时任务的调整;:

Signed-off-by: Binren Zhnag <zhangbr@elab-plus.com>
Binren Zhnag 5 years ago
parent
commit
89f5adab1f
1 changed files with 9 additions and 8 deletions
  1. 9 8
      apscheduler_elab.py

+ 9 - 8
apscheduler_elab.py

@@ -27,8 +27,8 @@ class Config(object):
             'args': '',
             'trigger': 'cron',
             'day_of_week': 'tue',
-            'hour': 9,
-            'minute': 40
+            'hour': 10,
+            'minute': 50
         },
         {
             'id': 'week_push_two',
@@ -74,12 +74,13 @@ class Funcs(object):
 
     @staticmethod
     def minute_push_elab():
-        pdu = PandaUtil('linshi')
-        sql = 'select house_id, COUNT(house_id) as number from t_house_image group by house_id limit 5'
-        file_name = 'pandas_chart_columns2{}.xlsx'.format(time.time())
-        df_data = pdu.query_data(sql)
-        print(df_data.size)
-        pdu.panda_chart([df_data], 1, 'title x', 'title y', file_name)
+        # pdu = PandaUtil('linshi')
+        # sql = 'select house_id, COUNT(house_id) as number from t_house_image group by house_id limit 5'
+        # file_name = 'pandas_chart_columns2{}.xlsx'.format(time.time())
+        # df_data = pdu.query_data(sql)
+        # print(df_data.size)
+        # pdu.panda_chart([df_data], 1, 'title x', 'title y', file_name)
+        print('wwwww')
 
 
 if __name__ == '__main__':