Tools / Issues script: Print modules with 0 bugs at the end

This commit is contained in:
Thomas Dinges
2024-12-05 18:51:49 +01:00
parent 949a7e6a60
commit 8c8248de58

View File

@@ -116,6 +116,7 @@ def compile_list(severity: str) -> None:
# Module overview with numbers
total = 0
modules_with_no_bugs = []
for module in modules.values():
buglist_str = (", ".join(module.buglist))
buglist_len = len(module.buglist)
@@ -126,7 +127,10 @@ def compile_list(severity: str) -> None:
print(f"- [{module.name}]({full_url}): *{buglist_len}*")
else:
print(f"- [{module.name}]({full_url}): *{buglist_len}* _{buglist_str}_")
else:
modules_with_no_bugs.append(module.name)
print(f"- {', '.join(modules_with_no_bugs)}: *0*")
print()
print(f"[Total]({total_url}): {total}")
print()