diff --git a/xmrnodes/app.py b/xmrnodes/app.py
index 9583273..4763954 100644
--- a/xmrnodes/app.py
+++ b/xmrnodes/app.py
@@ -49,6 +49,8 @@ def index():
return render_template(
"index.html",
nodes=nodes,
+ nodes_healthy=[n for n in nodes if n.available],
+ nodes_unhealthy=[n for n in nodes if not n.available],
form=form
)
diff --git a/xmrnodes/templates/index.html b/xmrnodes/templates/index.html
index da96d33..00ea528 100644
--- a/xmrnodes/templates/index.html
+++ b/xmrnodes/templates/index.html
@@ -40,6 +40,8 @@
{% if nodes %}
Currently tracking {{ nodes | length }} nodes in the database. Of those, {{ nodes_unhealthy | length }} nodes failed their last check-in.
+