Commit 5b58ea3b by lichenggang

更新过滤

parent d095bdbe
Showing with 4 additions and 3 deletions
...@@ -17,11 +17,12 @@ def parse_msg(msg): ...@@ -17,11 +17,12 @@ def parse_msg(msg):
filter_lines = [] filter_lines = []
for line in lines: for line in lines:
for filter_kw in filter_plat_kw: for filter_kw in filter_plat_kw:
if filter_kw not in line: if filter_kw in line:
filter_lines.append(line) break
filter_lines.append(line)
break
msgs = [] msgs = []
for line in filter_lines: for line in filter_lines:
if '错误率' in line and float(wrong_ratio_pat.findall(line)[0]) >= 80: if '错误率' in line and float(wrong_ratio_pat.findall(line)[0]) >= 80:
msgs.append(line) msgs.append(line)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment