diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-03-05 15:40:13 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-05 15:41:58 +0100 |
commit | 3bd0650d1480e148d22fc9ab119124ed3f193b0f (patch) | |
tree | d12ffeab10995e3e0d949ecc1c4bf73f40ca837b /bin | |
parent | 2a1240791bdbb1b8a671f965e47a30f3eefa26c2 (diff) | |
download | jenkins.debian.net-3bd0650d1480e148d22fc9ab119124ed3f193b0f.tar.xz |
reproducible: html_indexes: print the page sections of the scheduled page even if there is nothing to show
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_indexes.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py index e1b8394d..c474c28e 100755 --- a/bin/reproducible_html_indexes.py +++ b/bin/reproducible_html_indexes.py @@ -293,15 +293,15 @@ def build_leading_text_section(section, rows, suite, arch): return html -def build_page_section(section, suite, arch): +def build_page_section(page, section, suite, arch): try: rows = query_db(queries[section['query']].format(suite=suite, arch=arch)) except: print_critical_message('A query failed: ' + queries[section['query']]) raise html = '' - if not rows: # there are no package in this set - return html # do not output anything on the page. + if not rows and page != 'scheduled': # there are no package in this set + return html # do not output anything on the page. html += build_leading_text_section(section, rows, suite, arch) html += '<p>\n' + tab + '<code>\n' for row in rows: @@ -333,9 +333,9 @@ def build_page(page, suite=None, arch=None): if not suite: # global page for lsuite in SUITES: for larch in ARCHES: - html += build_page_section(section, lsuite, larch) + html += build_page_section(page, section, lsuite, larch) else: - html += build_page_section(section, suite, arch) + html += build_page_section(page, section, suite, arch) try: title = pages[page]['title'] except KeyError: |