|
@@ -21,8 +21,8 @@ def schedule_tasks():
|
|
|
schedule.every().hour.at(":35").do(jab_top_recommend)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
- jab_top_recommend()
|
|
|
- # schedule_tasks() # 调用任务调度函数
|
|
|
- # while True:
|
|
|
- # schedule.run_pending()
|
|
|
- # time.sleep(1) # 每秒钟检查一次
|
|
|
+ # jab_top_recommend()
|
|
|
+ schedule_tasks() # 调用任务调度函数
|
|
|
+ while True:
|
|
|
+ schedule.run_pending()
|
|
|
+ time.sleep(1) # 每秒钟检查一次
|