From c7cfded78f9170e13f7052b67bde7fa76a41d741 Mon Sep 17 00:00:00 2001 From: break27 Date: Thu, 14 Aug 2025 12:56:16 +0800 Subject: [PATCH] minor fix --- 邮件批量发送.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/邮件批量发送.py b/邮件批量发送.py index ec0b106..1e95340 100644 --- a/邮件批量发送.py +++ b/邮件批量发送.py @@ -235,7 +235,7 @@ def main(): print(f'[信息] 预计使用时间 {timedelta(minutes=length / rate)}') print(f'[信息] 当前时区:{args.timezone or '无'}') - entries = list(filter(lambda it: it.locale == suffix, greetings)) + entries = list(filter(lambda it: it.get('locale') == suffix, greetings)) locale = dict(entries[0]) if len(entries) > 0 else None print(f'[信息] 当前语言:{str(suffix).upper() if locale else '无'}', end='\n\n')