From bc4a2a0314e7571450a2b2b9f3384ffb5130cf47 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 11 Mar 2015 20:33:49 +0100 Subject: reproducible: reorder columns --- bin/reproducible_html_indexes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/reproducible_html_indexes.py') diff --git a/bin/reproducible_html_indexes.py b/bin/reproducible_html_indexes.py index 1c81bd40..c361f27c 100755 --- a/bin/reproducible_html_indexes.py +++ b/bin/reproducible_html_indexes.py @@ -44,7 +44,7 @@ section must have at least a `query` defining what to file in. queries = { 'count_total': 'SELECT COUNT(*) FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE s.suite="{suite}" AND s.architecture="{arch}"', - 'scheduled': 'SELECT (select count(*) from schedule as sch_b where sch.id >= sch_b.id), s.suite, s.architecture, s.name, sch.date_scheduled FROM schedule AS sch JOIN sources AS s ON sch.package_id=s.id WHERE sch.date_build_started = "" ORDER BY sch.date_scheduled', + 'scheduled': 'SELECT (select count(*) from schedule as sch_b where sch.id >= sch_b.id), sch.date_scheduled, s.suite, s.architecture, s.name FROM schedule AS sch JOIN sources AS s ON sch.package_id=s.id WHERE sch.date_build_started = "" ORDER BY sch.date_scheduled', 'reproducible_all': 'SELECT s.name FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE s.suite="{suite}" AND s.architecture="{arch}" AND r.status="reproducible" ORDER BY r.build_date DESC', 'reproducible_last24h': 'SELECT s.name FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE s.suite="{suite}" AND s.architecture="{arch}" AND r.status="reproducible" AND r.build_date > datetime("now", "-24 hours") ORDER BY r.build_date DESC', 'reproducible_last48h': 'SELECT s.name FROM results AS r JOIN sources AS s ON r.package_id=s.id WHERE s.suite="{suite}" AND s.architecture="{arch}" AND r.status="reproducible" AND r.build_date > datetime("now", "-48 hours") ORDER BY r.build_date DESC', @@ -295,14 +295,14 @@ def build_page_section(page, section, suite, arch): return (html, footnote) # do not output anything on the page. html += build_leading_text_section(section, rows, suite, arch) if page == 'scheduled': - html += '

\n' + tab + '\n' + html += '

#suitearchitecturesource packagescheduled at
\n' + tab + '\n' else: html += '

\n' + tab + '\n' for row in rows: if page == 'scheduled': - pkg = row[3] + pkg = row[4] url = RB_PKG_URI + '/' + row[1] + '/' + row[2] + '/' + pkg + '.html' - html += tab + '

' + html += '' html += '\n' if page == 'scheduled': html += '
#scheduled atsuitearchitecturesource package
' + str(row[0]) + '' + row[1] + '' + row[2] + '' + html += tab + '
' + str(row[0]) + '' + row[1] + '' + row[2] + '' + row[3] + '' else: pkg = row[0] url = RB_PKG_URI + '/' + suite + '/' + arch + '/' + pkg + '.html' @@ -315,7 +315,7 @@ def build_page_section(page, section, suite, arch): html += '">' + pkg + '' html += get_trailing_icon(pkg, bugs) if page == 'scheduled': - html += '' + row[4] + '

\n' -- cgit v1.2.3-70-g09d2