@@ -70,7 +70,7 @@ init() {
local count=1
local current_data="$(date -d '2 days ago' +%Y%m%d)"
# 循环获取前 n 天的非节日日期
- while [[ $count -lt 8 ]]; do
+ while [[ $count -lt 7 ]]; do
date_key=$(date -d "$current_data" +%Y%m%d)
# 判断是否是节日,并拼接训练数据路径
if [ $(is_not_holidays $date_key) -eq 1 ]; then
@@ -62,7 +62,7 @@ def seconds_convert(seconds):
def _monitor(level, msg: str, start, elapsed):
"""消息推送"""
- now = datetime.datetime.now()
+ now = datetime.now()
if now.hour > 6:
msg = msg.replace("\\n", "\n").replace("\\t", "\t")
mgs_text = f"- 当前时间: {now.strftime('%Y-%m-%d %H:%M:%S')}" \