From d669b3739778d18002a6fd68391a2d6e1b463b7b Mon Sep 17 00:00:00 2001 From: Drobysh Date: Thu, 15 Oct 2026 17:45:24 +0000 Subject: [PATCH 1/2] =?UTF-8?q?[Eva]=20Fix=20500=20on=20/wordquiz/next:=20?= =?UTF-8?q?LIMIT=20(wrong=5Fcount=20+=201)=20=E2=86=92=20LIMIT=205?= 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 de8255c..dd94965 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 (wrong_count + 1) + LIMIT 5 """, current_level, correct_polish, *exclude_for_wrong) if len(wrong_words) < wrong_count: From 38e0c2fe80cf174b945783f5fadf6716f35a9fe4 Mon Sep 17 00:00:00 2001 From: Drobysh Date: Thu, 15 Oct 2026 17:45:27 +0000 Subject: [PATCH 2/2] =?UTF-8?q?[Eva]=20Fix=20500=20on=20/wordquiz/next:=20?= =?UTF-8?q?LIMIT=20(wrong=5Fcount=20+=201)=20=E2=86=92=20LIMIT=205=20(fall?= =?UTF-8?q?back)?= 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 dd94965..df5f79a 100644 --- a/routers/wordquiz.py +++ b/routers/wordquiz.py @@ -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 = []