mirror of https://github.com/jumpserver/jumpserver
fix: 修复服务告警主题替换<br>
parent
07cd930c0e
commit
7939ef34b0
|
@ -164,7 +164,6 @@ class SystemMessage(Message):
|
|||
|
||||
self.send_msg(users, receive_backends)
|
||||
|
||||
|
||||
@classmethod
|
||||
def post_insert_to_db(cls, subscription: SystemMsgSubscription):
|
||||
pass
|
||||
|
|
|
@ -18,8 +18,9 @@ class ServerPerformanceMessage(SystemMessage):
|
|||
self._msg = msg
|
||||
|
||||
def get_common_msg(self):
|
||||
subject = self._msg[:80]
|
||||
return {
|
||||
'subject': self._msg[:80],
|
||||
'subject': subject.replace('<br>', '; '),
|
||||
'message': self._msg
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue