From 075e43290084427d7347cb85eca410cd3e8cbe23 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 27 Jun 2025 15:12:54 +1000 Subject: [PATCH] feat: Update values to use HNS logo rather than 'HNS' --- render.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/render.py b/render.py index bd9335d..d0034e8 100644 --- a/render.py +++ b/render.py @@ -42,6 +42,9 @@ if TX_EXPLORER_URL is None: NAMEHASH_CACHE = 'user_data/namehash_cache.json' CACHE_LOCK = threading.Lock() + +HNS_ICON = '' + def domains(domains, mobile=False): html = '' for domain in domains: @@ -157,9 +160,9 @@ def transactions(txs): if action == "HNS Transfer": if amount >= 0: - humanAction = f"Received {amount:,.2f} HNS" + humanAction = f"Received {amount:,.2f} {HNS_ICON}" else: - humanAction = f"Sent {(amount*-1):,.2f} HNS" + humanAction = f"Sent {(amount*-1):,.2f} {HNS_ICON}" elif action == "FINALIZE": if incomming and not isMulti: humanAction = f"Received {renderFromNameHash(nameHashes[0])}" @@ -170,7 +173,7 @@ def transactions(txs): else: humanAction = f"Finalized {isMulti + 1} domain transfers" elif action == "BID" and not isMulti: - humanAction = f"Bid {bid_value:,.2f} HNS on {renderFromNameHash(nameHashes[0])}" + humanAction = f"Bid {bid_value:,.2f} {HNS_ICON} on {renderFromNameHash(nameHashes[0])}" elif isMulti: humanAction = actionMapPlural.get(action, "Unknown Action") humanAction = humanAction.replace("multiple", f'{isMulti + 1}') @@ -197,7 +200,7 @@ def transactions(txs): html += f''' {txdate} - {humanAction} + {humanAction} ''' return html