Skip to content
Snippets Groups Projects
Verified Commit 6e8520eb authored by Jesper Zedlitz's avatar Jesper Zedlitz
Browse files

added column for HTTP status and error message

parent 8d8fe877
No related branches found
No related tags found
1 merge request!1Update Formats, Dependencies, and Dockerfile Configuration
Pipeline #1402 failed
......@@ -116,18 +116,20 @@ print("<h2>Distributionen with errors</h2>")
print('<table class="table" id="distributions">')
print(
"<thead><tr><th>Publisher</th><th>Format</th><th>available</th><th>content correct</th><th>MIME type wrong</th><th>MIME type</th><th>checksum correct</th><th>schema valid</th><th>URL</th></tr>"
"<thead><tr><th>Publisher</th><th>Format</th><th>accessible</th><th>HTTP status</th><th>content correct</th><th>MIME type wrong</th><th>MIME type</th><th>checksum correct</th><th>schema valid</th><th>URL</th><th>Error message</th></tr>"
)
print("<tr>")
print('<th><input type="text" placeholder="Filter by publisher" /></th>')
print('<th><input type="text" placeholder="Filter by format" /></th>')
print('<th><input type="text" placeholder="Filter by availability" /></th>')
print('<th><input type="text" placeholder="Filter by accessibility" /></th>')
print('<th><input type="text" placeholder="Filter by HTTP status" /></th>')
print('<th><input type="text" placeholder="Filter by correct content" /></th>')
print('<th><input type="text" placeholder="Filter by MIME type error" /></th>')
print('<th><input type="text" placeholder="Filter by MIME type" /></th>')
print('<th><input type="text" placeholder="Filter by checksum" /></th>')
print('<th><input type="text" placeholder="Filter by schema valid" /></th>')
print('<th><input type="text" placeholder="Filter by url" /></th>')
print('<th><input type="text" placeholder="Filter by error message" /></th>')
print("</tr>")
print("</thead>")
print("<tbody>")
......@@ -135,7 +137,7 @@ print("<tbody>")
for dist in distributions_with_problems:
entry = distributions_with_problems[dist]
print(
f"<tr><td>{entry.get('publisher')}</td><td>{entry.get('format')}</td><td>{entry.get('http_status','')}</td><td>{entry.get('valid','')}</td><td>{entry.get('mimetype_mismatch','')}</td><td>{entry.get('mimetype','')}</td><td>{entry.get('checksum_ok','')}</td><td>{entry.get('schema_valid','')}</td><td>{entry.get('url')}</td></tr>"
f"<tr><td>{entry.get('publisher')}</td><td>{entry.get('format')}</td><td>{entry.get('accessible','')}</td><td>{entry.get('http_status','')}</td><td>{entry.get('valid','')}</td><td>{entry.get('mimetype_mismatch','')}</td><td>{entry.get('mimetype','')}</td><td>{entry.get('checksum_ok','')}</td><td>{entry.get('schema_valid','')}</td><td>{entry.get('url')}</td><td>{entry.get('error')}</td></tr>"
)
print("</tbody></table>")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment