From 1999cfdfeb185a44dc18006d9bf8e7cf9fe3653d Mon Sep 17 00:00:00 2001 From: xinwen Date: Wed, 16 Jun 2021 15:13:42 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E9=92=89=E9=92=89?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/terminal/notifications.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/terminal/notifications.py b/apps/terminal/notifications.py index 7a87d56a6..0d7203ed2 100644 --- a/apps/terminal/notifications.py +++ b/apps/terminal/notifications.py @@ -16,6 +16,11 @@ CATEGORY_LABEL = _('Sessions') class CommandAlertMixin: + def get_dingtalk_msg(self) -> str: + msg = self._get_message() + msg = msg.replace('
', '') + return msg + @classmethod def post_insert_to_db(cls, subscription: SystemMsgSubscription): """