From 7c438124751df8c15e5f4174f1ad8514ea0ad69c Mon Sep 17 00:00:00 2001 From: Drobysh Date: Wed, 14 Oct 2026 11:53:50 +0000 Subject: [PATCH] =?UTF-8?q?[Eva]=20bubblewords=20/next:=20=D1=87=D0=B8?= =?UTF-8?q?=D1=81=D0=BB=D0=BE=20=D1=81=D0=BB=D0=BE=D0=B2=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D1=81=D0=BB=D0=BE=D0=B6=D0=BD=D0=BE=D1=81=D1=82=D0=B8=20(easy?= =?UTF-8?q?=203,=20medium=204,=20hard=205)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/bubblewords.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/routers/bubblewords.py b/routers/bubblewords.py index 9614c53..7e4df66 100644 --- a/routers/bubblewords.py +++ b/routers/bubblewords.py @@ -115,13 +115,9 @@ async def get_next_bubble_level(request: Request): ) current_bubble_level = (progress["levels_completed"] if progress else 0) + 1 - # Прогрессия по количеству слов на уровне - if current_bubble_level <= 10: - num_words = random.choice([3, 4]) - elif current_bubble_level <= 25: - num_words = random.choice([5, 6]) - else: - num_words = random.choice([7, 8]) + # Количество слов по сложности + difficulty = user["difficulty"] if "difficulty" in user.keys() else "medium" + num_words = {"easy": 3, "medium": 4, "hard": 5}.get(difficulty, 4) # 🔧 ФИКС (30.09.2026): csv_words_source — # источник слов переехал с level_words (старая схема level_id IS NULL)