diff options
author | Ximin Luo <infinity0@debian.org> | 2016-06-14 21:43:06 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-06-14 22:11:30 +0200 |
commit | 628b86e1dccf03c429a486162e6c0d12ee3a03cd (patch) | |
tree | 8c1102c26f457cfae40c3b7c16487606da8db692 | |
parent | b323cdd195f68a607533d2c2e8f7209744edb3dc (diff) | |
download | jenkins.debian.net-628b86e1dccf03c429a486162e6c0d12ee3a03cd.tar.xz |
reproducible debian: more descriptive names for issue score columns
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_html_notes.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py index 11bcc0ff..db55e2da 100755 --- a/bin/reproducible_html_notes.py +++ b/bin/reproducible_html_notes.py @@ -415,7 +415,9 @@ def index_issues(issues, scorefuncs): + "".join( tab*3 + k + "\n" + tab*2 + "</th>\n" + tab*2 + "<th>\n" for k in scorefuncs.keys()) \ - + tab*3 + "Affected packages\n" + tab*2 + "</th>\n" + tab + "</tr>\n" + + tab*3 + "Affected packages<br/>\n" \ + + tab*3 + "(the 1/4 most-popular are underlined)\n" \ + + tab*2 + "</th>\n" + tab + "</tr>\n" html = (tab*2).join(templ.splitlines(True)) for issue in sorted(issues, key=lambda issue: sort_issues(firstscorefunc, issue)): html += tab*3 + '<tr>\n' @@ -457,9 +459,12 @@ if __name__ == '__main__': iterate_over_notes(notes) iterate_over_issues(issues) index_issues(issues, OrderedDict([ - ('Total popcon score', lambda l: sum(popcon.package(*l).values())), - ('Total of sqrt(popcon score)', lambda l: int(sum(map(sqrt, popcon.package(*l).values())))), - ('Total number', len), + ("Sum of packages' popcon scores", + lambda l: sum(popcon.package(*l).values())), + ("Sum of square-roots of packages' popcon scores", + lambda l: int(sum(map(sqrt, popcon.package(*l).values())))), + ("Number of packages", + len), ])) purge_old_notes(notes) purge_old_issues(issues) |