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): """