Merge pull request #1360 from pan-long/patch-1
Use dot to access attribute in NamedTuple
This commit is contained in:
commit
c38f8b8ae2
@ -35,8 +35,8 @@ class Wallets(object):
|
|||||||
return 999.9
|
return 999.9
|
||||||
|
|
||||||
balance = self.wallets.get(currency)
|
balance = self.wallets.get(currency)
|
||||||
if balance and balance['free']:
|
if balance and balance.free:
|
||||||
return balance['free']
|
return balance.free
|
||||||
else:
|
else:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user