fix: 修正语法错误

This commit is contained in:
2021-08-07 18:01:34 +08:00
parent fa2c3b35dc
commit 9a7460ee91
+1 -1
View File
@@ -239,7 +239,7 @@ class WXBot(WebWeixin):
# 工作时间发送新消息提醒到飞书
curr_time_struct = time.localtime(time.time())
if params['from_name'] <> '_self' and curr_time_struct.tm_hour >= 10 and curr_time_struct.tm_hour < 19:
if params['from_name'] != '_self' and curr_time_struct.tm_hour >= 10 and curr_time_struct.tm_hour < 19:
requests.post(
"https://open.feishu.cn/open-apis/bot/v2/hook/30bda541-46de-40b7-8881-31b77deadc35",
headers={"Content-Type": "application/json"},