mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-19 11:42:15 +00:00
perf: 优化钉钉命令告警
This commit is contained in:
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
Block a user