perf: 优化钉钉命令告警

This commit is contained in:
xinwen 2021-06-16 15:13:42 +08:00 committed by 老广
parent c4af78c9f0
commit 1999cfdfeb

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