From d18945d0ee693d41fc703a473fd113fe3a133460 Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 27 Jan 2026 01:38:42 +0300 Subject: [PATCH] Update referral_contest.py --- app/database/crud/referral_contest.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/database/crud/referral_contest.py b/app/database/crud/referral_contest.py index d8278442..27ed54fe 100644 --- a/app/database/crud/referral_contest.py +++ b/app/database/crud/referral_contest.py @@ -617,9 +617,7 @@ async def debug_contest_transactions( # Подсчёт общих сумм ПО ТИПАМ (исключаем бонусы без payment_method) deposit_in_period = sum( - tx.amount_kopeks - for tx in txs_in - if tx.type == TransactionType.DEPOSIT.value and tx.payment_method is not None + tx.amount_kopeks for tx in txs_in if tx.type == TransactionType.DEPOSIT.value and tx.payment_method is not None ) subscription_in_period = sum( tx.amount_kopeks for tx in txs_in if tx.type == TransactionType.SUBSCRIPTION_PAYMENT.value