From 53376560051a108d2d814c476bec22d310077230 Mon Sep 17 00:00:00 2001 From: behruz-dev Date: Fri, 14 Nov 2025 15:28:44 +0500 Subject: [PATCH] fix --- core/apps/counterparty/views/counterparty.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/apps/counterparty/views/counterparty.py b/core/apps/counterparty/views/counterparty.py index bee909e..d26680b 100644 --- a/core/apps/counterparty/views/counterparty.py +++ b/core/apps/counterparty/views/counterparty.py @@ -347,7 +347,6 @@ class CounterpartyAKTApiView(views.APIView): return Response(response, status=200) def _group_by_date(self, parties, expences, incomes): - """Kun boyicha guruhlash""" daily_data = defaultdict(lambda: { 'parties': [], 'expences': [], @@ -360,7 +359,7 @@ class CounterpartyAKTApiView(views.APIView): }) for party in parties: - date_key = party.close_date.strftime('%Y-%m-%d') + date_key = party.closed_date.strftime('%Y-%m-%d') daily_data[date_key]['parties'].append(party) party_total = getattr(party, 'total_price', 0) or 0