perf: 优化钉钉命令告警

pull/6286/head
xinwen 2021-06-16 15:13:42 +08:00 committed by 老广
parent c4af78c9f0
commit 1999cfdfeb
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,11 @@ CATEGORY_LABEL = _('Sessions')
class CommandAlertMixin:
def get_dingtalk_msg(self) -> str:
msg = self._get_message()
msg = msg.replace('<br>', '')
return msg
@classmethod
def post_insert_to_db(cls, subscription: SystemMsgSubscription):
"""