[Eva] ChooseWord /next: LIMIT fallback по wrong_count

This commit is contained in:
2026-10-15 17:01:44 +00:00
parent edf29cb806
commit 7f5fc8311c
+1 -1
View File
@@ -86,7 +86,7 @@ async def get_next_quiz(request: Request):
FROM csv_words
WHERE level_code = $1 AND word_pl != $2
ORDER BY RANDOM()
LIMIT 5
LIMIT (wrong_count + 1)
""", current_level, correct_polish)
wrong_options = []