Fix doubled balances
This commit is contained in:
parent
738871bcce
commit
cfb7cec88f
|
@ -190,6 +190,8 @@ class NordigenClient(BaseClient, AggregatorClient):
|
|||
if currency:
|
||||
if not currency == entry["balanceAmount"]["currency"]:
|
||||
return (False, False)
|
||||
if not entry["balanceType"] == "interimAvailable":
|
||||
continue
|
||||
total += float(entry["balanceAmount"]["amount"])
|
||||
currency = entry["balanceAmount"]["currency"]
|
||||
return (currency, total)
|
||||
|
|
Loading…
Reference in New Issue