From 00677a10769191f3ed05f6762fad84bebfee3111 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 14 Feb 2015 18:42:15 +0100 Subject: reproducible: html_notes: call get_bugs() globally --- bin/reproducible_html_notes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/reproducible_html_notes.py') diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py index 78cc52f8..9841c19a 100755 --- a/bin/reproducible_html_notes.py +++ b/bin/reproducible_html_notes.py @@ -351,8 +351,7 @@ def get_trailing_icon(package, bugs): html += '" title="#' + str(bug) + '">+' return html -def index_notes(notes): - bugs = get_bugs() +def index_notes(notes, bugs): log.debug('Building the index_notes page...') html = '\n

There are ' + str(len(notes)) + ' packages with notes.

\n' html += '

\n' + tab + '\n' @@ -374,11 +373,12 @@ def index_notes(notes): if __name__ == '__main__': issues_count = {} + bugs = get_bugs() notes = load_notes() issues = load_issues() iterate_over_notes(notes) iterate_over_issues(issues) index_issues(issues) - index_notes(notes) + index_notes(notes, bugs) purge_old_notes(notes) process_packages(notes) # regenerate all rb-pkg/ pages -- cgit v1.2.3-54-g00ecf