From 02f615785f071a5cfdf7ab581c8044c18058dcdf Mon Sep 17 00:00:00 2001 From: Lachlan Glen <54282009+lachlanglen@users.noreply.github.com> Date: Mon, 6 May 2024 16:31:49 -0400 Subject: [PATCH] fix typo in account stats job --- indexer_app/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexer_app/tasks.py b/indexer_app/tasks.py index 17eca58..1d421a3 100644 --- a/indexer_app/tasks.py +++ b/indexer_app/tasks.py @@ -100,7 +100,7 @@ def update_account_statistics(): account.total_matching_pool_allocations_usd = ( PotPayout.objects.filter( recipient=account, paid_at__isnull=False - ).aggregate(Sum("amount_usd"))["amount_usd__sum"] + ).aggregate(Sum("amount_paid_usd"))["amount_paid_usd__sum"] or 0 )