From 178b8ec597b436d60d52639ba6a92403e1056edb Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 15 Nov 2023 21:27:03 +1100 Subject: [PATCH] feat: Hide addresses not in use --- sites/website.py | 7 +++++++ templates/city.html | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/sites/website.py b/sites/website.py index 37e08e0..cc5d579 100644 --- a/sites/website.py +++ b/sites/website.py @@ -29,6 +29,13 @@ def render(data,db_object): hns = db_object['HNS'] btc = db_object['BTC'] eth = db_object['ETH'] + if hns != "": + hns = "HNS: " + hns + if btc != "": + btc = "BTC: " + btc + if eth != "": + eth = "ETH: " + eth + bg_colour = db_object['bg_colour'] fg_colour = db_object['fg_colour'] text_colour = db_object['text_colour'] diff --git a/templates/city.html b/templates/city.html index 6911ce8..4467967 100644 --- a/templates/city.html +++ b/templates/city.html @@ -31,13 +31,13 @@
-

HNS: {{hns}}

+

{{hns}}

-

BTC: {{btc}}

+

{{btc}}

-

ETH: {{eth}}

+

{{eth}}