From 515a49c6d767e1b165718bbd61c0a132e8acae81 Mon Sep 17 00:00:00 2001
From: atrax <atrax@prtn.email>
Date: Sat, 12 Dec 2020 00:31:10 +0100
Subject: [PATCH] [enh] #300 : Display corresponding uid if found

---
 silkaj/money.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/silkaj/money.py b/silkaj/money.py
index ce8f9215..6ae9a8e1 100644
--- a/silkaj/money.py
+++ b/silkaj/money.py
@@ -83,12 +83,19 @@ async def show_amount_from_pubkey(pubkey, inputs_balance):
     currency_symbol = await CurrencySymbol().symbol
     ud_value = await UDValue().ud_value
     average, monetary_mass = await get_average()
-    # if `pubkey` is a pubkey, get pubkey:checksum
+    member = False
+
+    # if `pubkey` is a pubkey, get pubkey:checksum and uid
     if pubkey != "Total":
+        member = await wot.is_member(pubkey)
         pubkey = display_pubkey_and_checksum(pubkey)
     # display balance table
     display = list()
     display.append(["Balance of pubkey", pubkey])
+
+    if member:
+        display.append(["User identifier", member["uid"]])
+
     if totalAmountInput - balance != 0:
         display_amount(display, "Blockchain", balance, ud_value, currency_symbol)
         display_amount(
-- 
GitLab