[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 3548654d6a - Show all commits
+7
View File
@@ -122,6 +122,13 @@ async def get_next_sentence(request: Request):
if not row: if not row:
return {"completed": True, "message": "All sentences completed!"} return {"completed": True, "message": "All sentences completed!"}
# 🔧 НОВОЕ (16.10.2026): строка прогресса (in-progress) для счётчика list_opened.
await conn.execute("""
INSERT INTO sentence_progress (user_id, sentence_id, list_opened, completion_time)
VALUES ($1, $2, 0, 0)
ON CONFLICT (user_id, sentence_id) DO NOTHING
""", telegram_id, row["id"])
# Оригинальные слова (для проверки) # Оригинальные слова (для проверки)
correct_words = row["sentence_pl"].split() correct_words = row["sentence_pl"].split()