mirror of
https://github.com/TeamWiseFlow/wiseflow.git
synced 2025-01-23 02:20:20 +08:00
improve sth
This commit is contained in:
parent
7349d6fa3a
commit
cb8f7ef7f2
@ -20,15 +20,16 @@ def task():
|
||||
continue
|
||||
if counter % site['per_hours'] == 0:
|
||||
urls.append(site['url'])
|
||||
counter += 1
|
||||
print(f'\033[0;32mtask execute loop {counter}\033[0m')
|
||||
print(f'\033[0;32m task execute loop {counter}\033[0m')
|
||||
print(urls)
|
||||
if urls:
|
||||
sp(sites=urls)
|
||||
else:
|
||||
if counter % 24 == 0:
|
||||
sp()
|
||||
|
||||
else:
|
||||
print('\033[0;33mno work for this loop\033[0m')
|
||||
counter += 1
|
||||
|
||||
schedule.every().hour.at(":38").do(task)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user