From 2a1f591936ec3972dc1a8705ff804e40729f33c4 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 17 Jan 2015 13:54:54 +0100 Subject: reproducible: _html_notes: sort issues by number of affected packages --- bin/reproducible_html_notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py index cd1328bd..766e6dab 100755 --- a/bin/reproducible_html_notes.py +++ b/bin/reproducible_html_notes.py @@ -295,7 +295,7 @@ def index_issues(issues): + tab*3 + "Identified issues\n" + tab*2 + "\n" + tab*2 + "\n" \ + tab*3 + "Affected packages\n" + tab*2 + "\n" + tab + "\n" html = (tab*2).join(templ.splitlines(True)) - for issue in sorted(issues): + for issue in sorted(issues, key=lambda x: len(issues_count[x]), reverse=True): html += tab*3 + '\n' html += tab*4 + '' + issue + '\n' -- cgit v1.2.3-70-g09d2