Clear aggregator accounts before fetching

This commit is contained in:
Mark Veidemanis 2023-04-18 09:32:57 +01:00
parent f096a8e839
commit 4fde670b52
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,8 @@ async def aggregator_job():
if aggregator.service == "nordigen": if aggregator.service == "nordigen":
instance = await NordigenClient(aggregator) instance = await NordigenClient(aggregator)
if aggregator.fetch_accounts is True: if aggregator.fetch_accounts is True:
aggregator.account_info = {}
aggregator.save()
await instance.get_all_account_info(store=True) await instance.get_all_account_info(store=True)
fetch_tasks = [] fetch_tasks = []