[Eva] user_profile: начисление final_points
This commit is contained in:
+2
-2
@@ -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. Считаем новый уровень
|
||||
|
||||
Reference in New Issue
Block a user