fix: 修改定时任务时间
This commit is contained in:
parent
2ec8b1771b
commit
dd14c9ff45
6
main.py
6
main.py
|
|
@ -34,7 +34,7 @@ def get_data_job(lottery_type='pls'):
|
||||||
print(f'issue:{draw_issue}已经存在')
|
print(f'issue:{draw_issue}已经存在')
|
||||||
|
|
||||||
|
|
||||||
@repeat(every().day.at("00:01"))
|
@repeat(every().day.at("21:50"))
|
||||||
def pls_job():
|
def pls_job():
|
||||||
get_data_job(lottery_type='pls')
|
get_data_job(lottery_type='pls')
|
||||||
|
|
||||||
|
|
@ -46,10 +46,6 @@ def plw_job():
|
||||||
def sd_job():
|
def sd_job():
|
||||||
get_data_job(lottery_type='sd')
|
get_data_job(lottery_type='sd')
|
||||||
|
|
||||||
@repeat(every().day.at("21:30"))
|
|
||||||
def print_hello():
|
|
||||||
print("hello at: 21:30")
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
run_pending()
|
run_pending()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue