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. Считаем новый уровень