[Eva] ChooseWord /next: обрезка вариантов по wrong_count

This commit is contained in:
2026-10-15 17:01:52 +00:00
parent 175691136e
commit 34bae9bb6a
+1 -1
View File
@@ -96,7 +96,7 @@ async def get_next_quiz(request: Request):
if wl not in seen: if wl not in seen:
wrong_options.append(w["word_pl"]) wrong_options.append(w["word_pl"])
seen.add(wl) seen.add(wl)
if len(wrong_options) >= 2: if len(wrong_options) >= wrong_count:
break break
recent_words = recent_words + [correct_polish] + wrong_options recent_words = recent_words + [correct_polish] + wrong_options