mirror of https://github.com/jumpserver/jumpserver
perf: 优化钉钉命令告警
parent
c4af78c9f0
commit
1999cfdfeb
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue