From 6f341a7f3334c44b908815d2daf803190908c381 Mon Sep 17 00:00:00 2001 From: Drobysh Date: Tue, 13 Oct 2026 11:20:55 +0000 Subject: [PATCH] =?UTF-8?q?[Eva]=20user=5Fprofile:=20=D0=BD=D0=B0=D1=87?= =?UTF-8?q?=D0=B8=D1=81=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20final=5Fpoints?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/xp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/xp.py b/services/xp.py index 06d77b4..eeea781 100644 --- a/services/xp.py +++ b/services/xp.py @@ -251,7 +251,7 @@ async def award_xp( ) # 6. Обновляем user_profile - new_total = old_total + points + new_total = old_total + final_points await conn.execute( """ UPDATE user_profile @@ -260,7 +260,7 @@ async def award_xp( updated_at = NOW() WHERE user_id = $1 """, - user_id, points, + user_id, final_points, ) # 7. Считаем новый уровень