Compare commits

..

3 Commits

Author SHA1 Message Date
nolash
1ddaea8acb Use leaf instead of collect in balance retrieve from api 2021-04-12 13:10:57 +02:00
Louis Holbrook
7dee7de26e Merge branch 'lash/import-ussd' into 'master'
Implement migration script with ussd and notify

See merge request grassrootseconomics/cic-internal-integration!87
2021-04-09 13:00:15 +00:00
Louis Holbrook
7b16a36a62 Implement migration script with ussd and notify 2021-04-09 13:00:15 +00:00

View File

@@ -241,9 +241,7 @@ class TrafficProvisioner:
#callback_queue=queue,
)
t = api.balance(account, token.symbol())
r = t.get()
for c in t.collect():
r = c[1]
r = t.get_leaf()
assert t.successful()
#return r[0]['balance_network'] - r[0]['balance_outgoing']
return r[0]