From d519553809f9eb5d8d7b8a1e7fd79c52cd515a27 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sun, 7 Mar 2021 01:45:52 -0800 Subject: [PATCH] puts more context/detail around totals/failed --- xmrnodes/app.py | 2 ++ xmrnodes/templates/index.html | 2 ++ 2 files changed, 4 insertions(+) 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.

+