Don't rename dict ... we can use it as is

This commit is contained in:
Matthias
2019-09-05 20:02:01 +02:00
parent f9c7a2cacb
commit e2e0015119
5 changed files with 16 additions and 16 deletions

View File

@@ -294,9 +294,9 @@ class RPC(object):
total = total + est_btc
output.append({
'currency': coin,
'available': balance['free'],
'free': balance['free'],
'balance': balance['total'],
'pending': balance['used'],
'used': balance['used'],
'est_btc': est_btc,
})
if total == 0.0:

View File

@@ -328,9 +328,9 @@ class Telegram(RPC):
for currency in result['currencies']:
if currency['est_btc'] > 0.0001:
curr_output = "*{currency}:*\n" \
"\t`Available: {available: .8f}`\n" \
"\t`Available: {free: .8f}`\n" \
"\t`Balance: {balance: .8f}`\n" \
"\t`Pending: {pending: .8f}`\n" \
"\t`Pending: {used: .8f}`\n" \
"\t`Est. BTC: {est_btc: .8f}`\n".format(**currency)
else:
curr_output = "*{currency}:* not showing <1$ amount \n".format(**currency)