Commit 518659dc1f5cc4563db4c5a4fd8f5e1dac470c96
1 parent
11bd2177
更新
Showing
1 changed file
with
1 additions
and
1 deletions
commons/scripts/delReport.py
... | ... | @@ -25,7 +25,7 @@ def delReport(path,delNum=5): |
25 | 25 | file_list = file_list[:0-delNum] |
26 | 26 | # print("if file_lis --- ",file_list) |
27 | 27 | for i in file_list: |
28 | - if os.path.isfile(project_path + "/report/" + i) and ".log" not in i: | |
28 | + if os.path.isfile(project_path + "/report/" + i) and ".html" in i: | |
29 | 29 | os.remove(project_path + "/report/" + i) |
30 | 30 | print(f"删除报告 {i} 成功") |
31 | 31 | # 文件已删除 | ... | ... |