From edf29cb80666381e33b82def760bb727aac5fc1a Mon Sep 17 00:00:00 2001 From: Drobysh Date: Thu, 15 Oct 2026 17:01:41 +0000 Subject: [PATCH] =?UTF-8?q?[Eva]=20ChooseWord=20/next:=20LIMIT=20=D0=BF?= =?UTF-8?q?=D0=BE=20wrong=5Fcount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/wordquiz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/wordquiz.py b/routers/wordquiz.py index 3991644..d06cac7 100644 --- a/routers/wordquiz.py +++ b/routers/wordquiz.py @@ -76,7 +76,7 @@ async def get_next_quiz(request: Request): FROM csv_words WHERE level_code = $1 AND word_pl != $2 AND word_pl NOT IN ({placeholders}) ORDER BY RANDOM() - LIMIT 5 + LIMIT (wrong_count + 1) """, current_level, correct_polish, *exclude_for_wrong) if len(wrong_words) < 2: