Browse Source

定时任务恢复

zhangyong 11 months ago
parent
commit
9f5717a7ed
1 changed files with 14 additions and 14 deletions
  1. 14 14
      video_job.py

+ 14 - 14
video_job.py

@@ -71,19 +71,19 @@ def usernames_today():
     print("today 已清空")
 
 
-video_start()
-
-
-# # 定时任务设置
-# schedule.every().day.at("01:00").do(usernames_today)
-#
-#
-# schedule.every(12).hours.do(video_start)
-#
-#
-#
-# while True:
-#     schedule.run_pending()
-#     time.sleep(1)
+# video_start()
+
+
+# 定时任务设置
+schedule.every().day.at("01:00").do(usernames_today)
+
+
+schedule.every(12).hours.do(video_start)
+
+
+
+while True:
+    schedule.run_pending()
+    time.sleep(1)