[Eva] Fix 500 on /wordquiz/next: LIMIT (wrong_count + 1) → LIMIT 5 (fallback)

This commit is contained in:
2026-10-15 17:45:27 +00:00
parent d669b37397
commit 38e0c2fe80
+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 (wrong_count + 1)
LIMIT 5
""", current_level, correct_polish)
wrong_options = []