From 628b86e1dccf03c429a486162e6c0d12ee3a03cd Mon Sep 17 00:00:00 2001 From: Ximin Luo Date: Tue, 14 Jun 2016 21:43:06 +0200 Subject: reproducible debian: more descriptive names for issue score columns Signed-off-by: Holger Levsen --- bin/reproducible_html_notes.py | 13 +++++++++---- 1 file 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 + "\n" + tab*2 + "\n" for k in scorefuncs.keys()) \ - + tab*3 + "Affected packages\n" + tab*2 + "\n" + tab + "\n" + + tab*3 + "Affected packages
\n" \ + + tab*3 + "(the 1/4 most-popular are underlined)\n" \ + + tab*2 + "\n" + tab + "\n" html = (tab*2).join(templ.splitlines(True)) for issue in sorted(issues, key=lambda issue: sort_issues(firstscorefunc, issue)): html += tab*3 + '\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) -- cgit v1.2.3-70-g09d2