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