fix: 修复服务告警主题替换<br>

pull/6852/head
Michael Bai 2021-09-14 17:23:37 +08:00 committed by Jiangjie.Bai
parent 07cd930c0e
commit 7939ef34b0
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,6 @@ class SystemMessage(Message):
self.send_msg(users, receive_backends) self.send_msg(users, receive_backends)
@classmethod @classmethod
def post_insert_to_db(cls, subscription: SystemMsgSubscription): def post_insert_to_db(cls, subscription: SystemMsgSubscription):
pass pass

View File

@ -18,8 +18,9 @@ class ServerPerformanceMessage(SystemMessage):
self._msg = msg self._msg = msg
def get_common_msg(self): def get_common_msg(self):
subject = self._msg[:80]
return { return {
'subject': self._msg[:80], 'subject': subject.replace('<br>', '; '),
'message': self._msg 'message': self._msg
} }