From 2c2277faa6fb578d815a8bbefb967e0bb74fbab9 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sun, 9 Oct 2022 22:20:52 +0200 Subject: [PATCH] print fix --- cashu/wallet/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cashu/wallet/cli.py b/cashu/wallet/cli.py index 2f75f33..8c623c1 100755 --- a/cashu/wallet/cli.py +++ b/cashu/wallet/cli.py @@ -156,7 +156,7 @@ async def balance(ctx): print("") for k, v in keyset_balances.items(): print( - f"Keyset: {k or 'undefined'} Balance: {v['balance']} sat (available: {v['available']})" + f"Keyset: {k or 'undefined'} Balance: {v['balance']} sat (available: {v['available']} sat)" ) print("") print( @@ -338,7 +338,7 @@ async def wallets(ctx): if w == ctx.obj["WALLET_NAME"]: active_wallet = True print( - f"Wallet: {w}\tBalance: {sum_proofs(wallet.proofs)} sat (available: {sum_proofs([p for p in wallet.proofs if not p.reserved])}){' *' if active_wallet else ''}" + f"Wallet: {w}\tBalance: {sum_proofs(wallet.proofs)} sat (available: {sum_proofs([p for p in wallet.proofs if not p.reserved])} sat){' *' if active_wallet else ''}" ) except: pass