Skip to content
Snippets Groups Projects
Commit b9b0f5c5 authored by ale's avatar ale
Browse files

Fix tests (missing test config), and index page

parent a8ff2487
No related branches found
No related tags found
No related merge requests found
Pipeline #10972 passed
......@@ -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 %}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment