[Eva] ChooseWord /next: проверка минимума по wrong_count

This commit is contained in:
2026-10-15 17:01:47 +00:00
parent 7f5fc8311c
commit 175691136e
+1 -1
View File
@@ -79,7 +79,7 @@ async def get_next_quiz(request: Request):
LIMIT (wrong_count + 1) LIMIT (wrong_count + 1)
""", current_level, correct_polish, *exclude_for_wrong) """, current_level, correct_polish, *exclude_for_wrong)
if len(wrong_words) < 2: if len(wrong_words) < wrong_count:
# 🔧 ФИКС (30.09.2026): csv_words_source — fallback тоже на csv_words. # 🔧 ФИКС (30.09.2026): csv_words_source — fallback тоже на csv_words.
wrong_words = await conn.fetch(""" wrong_words = await conn.fetch("""
SELECT word_pl SELECT word_pl