From 84529899ecd3cfa588788570d6fef22058b64732 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sat, 8 May 2021 01:13:51 -0700 Subject: [PATCH] fix user outputs --- tipbot/commands/balance.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tipbot/commands/balance.py b/tipbot/commands/balance.py index dfd65b3..91d96d8 100644 --- a/tipbot/commands/balance.py +++ b/tipbot/commands/balance.py @@ -11,4 +11,6 @@ from tipbot.helpers.decorators import wallet_rpc_required, log_event, registrati def balance(update, context): u = db.User.get(telegram_id=update.message.from_user['id']) balances = wownero.Wallet().balances(account=u.account_index) - update.message.reply_text(f'Available balance for {u.telegram_user}: {float(balances[1])} WOW ({float(balances[0])} WOW locked)') + unlocked = balances[1] + locked = balances[0] - balances[1] + update.message.reply_text(f'Available balance for {u.telegram_user}: {float(unlocked)} WOW ({float(locked)} WOW locked)')