[Eva] user_profile: начисление final_points

This commit is contained in:
2026-10-13 11:20:55 +00:00
parent 981e65e57c
commit 6f341a7f33
+2 -2
View File
@@ -251,7 +251,7 @@ async def award_xp(
) )
# 6. Обновляем user_profile # 6. Обновляем user_profile
new_total = old_total + points new_total = old_total + final_points
await conn.execute( await conn.execute(
""" """
UPDATE user_profile UPDATE user_profile
@@ -260,7 +260,7 @@ async def award_xp(
updated_at = NOW() updated_at = NOW()
WHERE user_id = $1 WHERE user_id = $1
""", """,
user_id, points, user_id, final_points,
) )
# 7. Считаем новый уровень # 7. Считаем новый уровень