From 82eb9208d82a48e467090bd2ce44014bf8306ebe Mon Sep 17 00:00:00 2001 From: Drobysh Date: Fri, 16 Oct 2026 10:48:50 +0000 Subject: [PATCH] =?UTF-8?q?[Eva]=20B2.3:=20already=5Fcompleted=20=D0=BF?= =?UTF-8?q?=D0=BE=20completed=5Fat=20IS=20NOT=20NULL?= 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 8af1b4f..83f3ce4 100644 --- a/routers/sentences.py +++ b/routers/sentences.py @@ -236,7 +236,7 @@ async def check_sentence(request: Request): raise HTTPException(404, "Sentence not found") existing_progress = await conn.fetchrow( - "SELECT score, completed_at FROM sentence_progress WHERE user_id = $1 AND sentence_id = $2", + "SELECT score, completed_at FROM sentence_progress WHERE user_id = $1 AND sentence_id = $2 AND completed_at IS NOT NULL", telegram_id, sentence_id )