Merge pull request #1360 from pan-long/patch-1

Use dot to access attribute in NamedTuple
This commit is contained in:
Matthias 2018-11-26 06:18:16 +01:00 committed by GitHub
commit c38f8b8ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,8 +35,8 @@ class Wallets(object):
return 999.9
balance = self.wallets.get(currency)
if balance and balance['free']:
return balance['free']
if balance and balance.free:
return balance.free
else:
return 0