定时任务,周计算调整。
This commit is contained in:
@@ -382,7 +382,8 @@ class MessagePushTask(MessagePluginInterface):
|
||||
|
||||
# 获取当前是周几(0-6,0是周一)
|
||||
current_weekday = now.weekday()
|
||||
weekly_days = [int(day) for day in weekly_days]
|
||||
# 将数据库中的周几(1-7)转换为代码中的周几(0-6)
|
||||
weekly_days = [int(day) - 1 for day in weekly_days]
|
||||
weekly_days.sort()
|
||||
|
||||
# 找到下一个执行日
|
||||
|
||||
Reference in New Issue
Block a user