Fix doubled balances

This commit is contained in:
Mark Veidemanis 2023-03-09 19:02:02 +00:00
parent 738871bcce
commit cfb7cec88f
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 0 deletions

View File

@ -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)