From 8b05bc4b82154dc93387ef0e2cd5a04c5e158f6f Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Fri, 4 Nov 2022 11:15:34 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=A4=9A=E8=8A=82=E7=82=B9=E5=8F=91?= =?UTF-8?q?=E9=80=81=E6=96=87=E4=BB=B6=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/assets/notifications.py b/apps/assets/notifications.py index 6a67878c9..a797bc845 100644 --- a/apps/assets/notifications.py +++ b/apps/assets/notifications.py @@ -22,7 +22,7 @@ class AccountBackupExecutionTaskMsg(object): name) def publish(self, attachment_list=None): - send_mail_attachment_async.delay( + send_mail_attachment_async( self.subject, self.message, [self.user.email], attachment_list ) @@ -44,6 +44,6 @@ class ChangeSecretExecutionTaskMsg(object): name) def publish(self, attachments=None): - send_mail_attachment_async.delay( + send_mail_attachment_async( self.subject, self.message, [self.user.email], attachments )