remove junk lines

This commit is contained in:
lza_menace 2020-09-11 14:18:13 -07:00
parent 5d15852607
commit 549193f0be

View file

@ -27,19 +27,6 @@ def dashboard():
for tx in transfers[type]: for tx in transfers[type]:
all_transfers.append(tx) all_transfers.append(tx)
# data = {'account_index': account_index, 'address_indices': [subaddress_index]}
# _balance = self.make_rpc('get_balance', data)
# locked = from_atomic(_balance['per_subaddress'][0]['balance'])
# unlocked = from_atomic(_balance['per_subaddress'][0]['unlocked_balance'])
# return (float(locked), float(unlocked))
from wowstash.library.jsonrpc import from_atomic
from pprint import pprint
bal = wallet.make_rpc('get_balance', {'account_index': 0, 'address_indices': [user.subaddress_index]})
# print(from_atomic(bal))
pprint(bal)
# pprint(transfers)
# pprint(balances)
qr_uri = f'wownero:{subaddress}?tx_description="{current_user.email}"' qr_uri = f'wownero:{subaddress}?tx_description="{current_user.email}"'
address_qr = qrcode_make(qr_uri).save(_address_qr) address_qr = qrcode_make(qr_uri).save(_address_qr)
qrcode = b64encode(_address_qr.getvalue()).decode() qrcode = b64encode(_address_qr.getvalue()).decode()