Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
tas_monitor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d095bdbe
authored
Feb 25, 2020
by
lichenggang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
过滤平台关键字
parent
bb59a6d5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
utils/robots.py
utils/robots.py
View file @
d095bdbe
...
...
@@ -14,8 +14,15 @@ msgapi_url = 'http://api.ichunt.com/msg/sendMessageByAuto'
def
parse_msg
(
msg
):
lines
=
msg
.
split
(
'
\n
'
)
msg
s
=
[]
filter_line
s
=
[]
for
line
in
lines
:
for
filter_kw
in
filter_plat_kw
:
if
filter_kw
not
in
line
:
filter_lines
.
append
(
line
)
msgs
=
[]
for
line
in
filter_lines
:
if
'错误率'
in
line
and
float
(
wrong_ratio_pat
.
findall
(
line
)[
0
])
>=
80
:
msgs
.
append
(
line
)
return
msgs
...
...
Write
Preview
Markdown
is supported
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