Commit a8ff2487 authored by ale's avatar ale
Browse files

Fix sorting of the probe results

Sort order should be reverse probe timestamp.
parent 2695c0f3
Pipeline #10970 passed with stages
in 1 minute and 3 seconds
......@@ -3,7 +3,7 @@
<h1>Diagnostics</h1>
{% for name, res in results | dictsort %}
{% for name, res in results | sort(attribute='1.timestamp', reverse=True) %}
<p>
<a href="{{ url_for('probe_detail', probe_name=name) }}"
{%- if res.status != 'ok' %} class="error"{% endif %}>
......@@ -13,7 +13,7 @@
<h3>Recent Errors</h3>
{% for name, timestamp, res in errors %}
{% for name, timestamp, res in errors | sort(attribute='1', reverse=True) %}
<p>
<a href="{{ url_for('probe_error', probe_name=name, probe_ts=timestamp) }}" class="error">
{{ res.timestamp | timefmt }} / <b>{{ res.status | upper }}</b> / {{ name }}</a>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment