|
@@ -64,10 +64,6 @@ def _monitor(level, msg: str, start, elapsed, top10):
|
|
"""消息推送"""
|
|
"""消息推送"""
|
|
"""消息推送"""
|
|
"""消息推送"""
|
|
now = datetime.now()
|
|
now = datetime.now()
|
|
- if now.hour < 6:
|
|
|
|
- print(f"凌晨六点之前不发送通知, 当前时间: {now.strftime('%Y-%m-%d %H:%M:%S')}")
|
|
|
|
- return
|
|
|
|
-
|
|
|
|
msg = msg.replace("\\n", "\n").replace("\\t", "\t")
|
|
msg = msg.replace("\\n", "\n").replace("\\t", "\t")
|
|
mgs_text = f"- 当前时间: {now.strftime('%Y-%m-%d %H:%M:%S')}" \
|
|
mgs_text = f"- 当前时间: {now.strftime('%Y-%m-%d %H:%M:%S')}" \
|
|
f"\n- 任务开始时间: {timestamp_format(start)}" \
|
|
f"\n- 任务开始时间: {timestamp_format(start)}" \
|