[Eva] B2.3: already_completed по completed_at IS NOT NULL
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user