[Eva] Ева, привет! Новая задача: игра «Составь #50

Merged
Drobysh merged 15 commits from eva/chat-ec3e05-backend into main 2026-10-16 10:59:05 +00:00
Showing only changes of commit 4e78c32c18 - Show all commits
+1 -1
View File
@@ -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