Merge pull request '[Eva] ты помнишь проблему с агентом Ева?)' (#56) from eva/chat-5b1483-backend into main

Reviewed-on: #56
This commit was merged in pull request #56.
This commit is contained in:
2026-11-02 09:35:04 +00:00
+2 -2
View File
@@ -370,14 +370,14 @@ async def complete_bubble_level(request: Request):
list_opened = (progress["current_list_opened"] if progress else 0) or 0 list_opened = (progress["current_list_opened"] if progress else 0) or 0
# 🔧 НОВОЕ (14.10.2026): очки по формуле филворда. # 🔧 НОВОЕ (14.10.2026): очки по формуле филворда.
# Hard — фикс 110. Easy/Medium — 100 − 20×hints − 20×list + bonus. # Hard — фикс 150. Easy/Medium — 100 − 20×hints − 20×list + bonus.
if difficulty == "hard": if difficulty == "hard":
if hints_used > 0 or list_opened: if hints_used > 0 or list_opened:
raise HTTPException( raise HTTPException(
status_code=400, status_code=400,
detail="Hints and word list are disabled on Hard difficulty" detail="Hints and word list are disabled on Hard difficulty"
) )
points = 110 points = 150
else: else:
bonus = 10 if hints_used == 0 else 0 bonus = 10 if hints_used == 0 else 0
penalty_hints = 20 * hints_used penalty_hints = 20 * hints_used