From 4e78c32c18d6535ee6cc23b1ec5435d1848bddf7 Mon Sep 17 00:00:00 2001 From: Drobysh Date: Fri, 16 Oct 2026 10:48:17 +0000 Subject: [PATCH] =?UTF-8?q?[Eva]=20B2.1:=20/next=20=D0=B8=D1=81=D0=BA?= =?UTF-8?q?=D0=BB=D1=8E=D1=87=D0=B0=D0=B5=D1=82=20=D1=82=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=BA=D0=BE=20=D0=B7=D0=B0=D0=B2=D0=B5=D1=80=D1=88=D1=91=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D0=B5=20=D0=BF=D1=80=D0=B5=D0=B4=D0=BB=D0=BE=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/sentences.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/sentences.py b/routers/sentences.py index 1a29a3a..27d1666 100644 --- a/routers/sentences.py +++ b/routers/sentences.py @@ -113,7 +113,7 @@ async def get_next_sentence(request: Request): SELECT s.* FROM sentences s WHERE s.level = $1 AND s.id NOT IN ( - SELECT sentence_id FROM sentence_progress WHERE user_id = $2 + SELECT sentence_id FROM sentence_progress WHERE user_id = $2 AND completed_at IS NOT NULL ) ORDER BY RANDOM() LIMIT 1