Commit 48f21530 by yexing

优化代码

parent e04e6148
......@@ -65,7 +65,7 @@ class Subsidiary:
"""在晚上运行任务"""
while True:
now = datetime.now().time()
if time(22, 0) > now and now > time(7, 0):
if time(19, 0) > now and now > time(2, 0):
for task in self._tasks:
if task and not task.done():
task.cancel()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment