From 4efe7147810cddc302623bc17e7ec149b02edd7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= <250213850@qq.com> Date: Thu, 3 Nov 2022 16:43:47 +0800 Subject: [PATCH] 1. --- api/api_v1/endpoints/interview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api_v1/endpoints/interview.py b/api/api_v1/endpoints/interview.py index 95566ab..d23321a 100644 --- a/api/api_v1/endpoints/interview.py +++ b/api/api_v1/endpoints/interview.py @@ -3222,7 +3222,7 @@ async def send_talent_pool( ) -> schemas.Msg: """把人才库的人推到人才推荐中,并给每个人发送邮件""" for i in data_in.send: - if i != '': + if i['mail'] != '': str_msg = f"""亲爱的{i['name']}:\n最近工作还顺利吗?好久不见,我是武汉乐谷在线科技有限公司的HR,最近我们正在招聘以下职位,与您匹配值非常高。\n 我们期待您的投递,祝您生活愉快!""" send_affix_mail(str_msg, i['mail'])