Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
abc3a8ae7d | ||
|
|
7c43812475 |
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user