Browse Source

perf: 优化钉钉命令告警

pull/6286/head
xinwen 3 years ago committed by 老广
parent
commit
1999cfdfeb
  1. 5
      apps/terminal/notifications.py

5
apps/terminal/notifications.py

@ -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…
Cancel
Save