From 4fde670b524bf43c984bc371fc1bb240952544a6 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 18 Apr 2023 09:32:57 +0100 Subject: [PATCH] Clear aggregator accounts before fetching --- core/management/commands/scheduling.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/management/commands/scheduling.py b/core/management/commands/scheduling.py index e0a4273..770b413 100644 --- a/core/management/commands/scheduling.py +++ b/core/management/commands/scheduling.py @@ -21,6 +21,8 @@ async def aggregator_job(): if aggregator.service == "nordigen": instance = await NordigenClient(aggregator) if aggregator.fetch_accounts is True: + aggregator.account_info = {} + aggregator.save() await instance.get_all_account_info(store=True) fetch_tasks = []