From 3548654d6a0ed7730e1477d3d8aafb4e64f96df4 Mon Sep 17 00:00:00 2001 From: Drobysh Date: Fri, 16 Oct 2026 10:48:26 +0000 Subject: [PATCH] =?UTF-8?q?[Eva]=20B2.1:=20/next=20=D1=81=D0=BE=D0=B7?= =?UTF-8?q?=D0=B4=D0=B0=D1=91=D1=82=20=D1=81=D1=82=D1=80=D0=BE=D0=BA=D1=83?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B5=D1=81=D1=81=D0=B0=20(in?= =?UTF-8?q?-progress)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/sentences.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/routers/sentences.py b/routers/sentences.py index 27d1666..5a5f248 100644 --- a/routers/sentences.py +++ b/routers/sentences.py @@ -122,6 +122,13 @@ async def get_next_sentence(request: Request): if not row: 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()