소스 검색

feat:去掉6点前飞书通知不发送的逻辑

zhaohaipeng 7 달 전
부모
커밋
b318ad0112
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      ad/ad_monitor_util.py

+ 0 - 4
ad/ad_monitor_util.py

@@ -64,10 +64,6 @@ def _monitor(level, msg: str, start, elapsed, top10):
     """消息推送"""
     """消息推送"""
     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")
     mgs_text = f"- 当前时间: {now.strftime('%Y-%m-%d %H:%M:%S')}" \
                f"\n- 任务开始时间: {timestamp_format(start)}" \