[Eva] B2.3: already_completed по completed_at IS NOT NULL

This commit is contained in:
2026-10-16 10:48:50 +00:00
parent 5b2dbc0d42
commit 82eb9208d8
+1 -1
View File
@@ -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
)