We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
wiki_tu
1 parent 10acd60 commit e0dfae2Copy full SHA for e0dfae2
tools/wiki_tu.py
@@ -96,9 +96,12 @@ def friendly_size(key: str) -> str:
96
# Link to source file
97
file_link = f"[`{file}`](../blob/master/src/{file}.c)"
98
99
+ matched_code = float(unit["matched_code"])
100
+ total_code = float(unit["total_code"])
101
+ code_percent = (matched_code / total_code if total_code else 0) * 100
102
matched = f"{friendly_size('matched_code')}"
103
total = f"{friendly_size('total_code')}"
- percent = f"`{humanfriendly.round_number(unit['fuzzy_match_percent'] or 0)}%`"
104
+ percent = f"`{humanfriendly.round_number(code_percent)}%`"
105
linked = ":heavy_check_mark:" if unit["complete"] else ":x:"
106
107
if assignee := assignees.get(file):
0 commit comments