Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
guo xiaoyong
Jumpserver
Commits
1999cfdf
Commit
1999cfdf
authored
4 years ago
by
xinwen
Committed by
老广
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
perf: 优化钉钉命令告警
parent
c4af78c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/terminal/notifications.py
+5
-0
apps/terminal/notifications.py
with
5 additions
and
0 deletions
+5
-0
apps/terminal/notifications.py
+
5
-
0
View file @
1999cfdf
...
...
@@ -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
):
"""
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment