wangkun %!s(int64=3) %!d(string=hai) anos
pai
achega
95dcf01e8a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      main/run_jxxf_recommend.py

+ 2 - 1
main/run_jxxf_recommend.py

@@ -13,7 +13,8 @@ class Main:
     @classmethod
     def main(cls, log_type, env):
         while True:
-            if datetime.datetime.now().hour <= 8:
+            # if datetime.datetime.now().hour <= 8:
+            if 23 >= datetime.datetime.now().hour >= 17:
                 Common.logger(log_type).info('开始抓取"祝福大家好才是真好"\n')
                 Recommend.start_wechat(log_type, env)
                 Common.del_logs(log_type)