[Eva] ChooseWord /next: обрезка вариантов по wrong_count
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user