Browse Source

v0.4提交

罗俊辉 8 months ago
parent
commit
0e56ce9e76
2 changed files with 2 additions and 2 deletions
  1. 1 1
      schedule_app.py
  2. 1 1
      tasks/auto_getoff_videos.py

+ 1 - 1
schedule_app.py

@@ -36,7 +36,7 @@ if __name__ == '__main__':
 
     schedule.every().day.at("05:00").do(migrate_videos_task)
 
-    schedule.every().day.at("10:00").do(get_off_videos_task)
+    schedule.every().day.at("11:00").do(get_off_videos_task)
 
     schedule.every().day.at("15:00").do(get_off_videos_task)
 

+ 1 - 1
tasks/auto_getoff_videos.py

@@ -118,4 +118,4 @@ class AutoGetOffVideos(object):
         video_set = cls.getLongArticlesVideos(time_stamp=seven_days_before)
         vid_list = [i[0] for i in video_set]
         with ThreadPoolExecutor(max_workers=8) as Pool1:
-            Pool1.map(cls.change_status, vid_list)
+            Pool1.map(cls.changeStatus, vid_list)