Commit b9b0f5c5 authored by ale's avatar ale
Browse files

Fix tests (missing test config), and index page

parent a8ff2487
Pipeline #10972 passed with stages
in 52 seconds
......@@ -26,6 +26,7 @@ def _load_probes():
def create_app(config={}):
app.config.update(config)
probes = _load_probes()
probe_interval = app.config.get('PROBE_INTERVAL_SECS', 900)
app.results = Results(
......
......@@ -3,7 +3,7 @@
<h1>Diagnostics</h1>
{% for name, res in results | sort(attribute='1.timestamp', reverse=True) %}
{% for name, res in results.items() | sort(attribute='1.timestamp', reverse=True) %}
<p>
<a href="{{ url_for('probe_detail', probe_name=name) }}"
{%- if res.status != 'ok' %} class="error"{% endif %}>
......
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