From 6399d3931c126b57cc02d97d5363ee5125c04eef Mon Sep 17 00:00:00 2001 From: Drobysh Date: Wed, 14 Oct 2026 09:20:09 +0000 Subject: [PATCH] =?UTF-8?q?[Eva]=20bubblewords:=20=D0=BE=D1=87=D0=B8=D1=81?= =?UTF-8?q?=D1=82=D0=BA=D0=B0=20=D1=81=D0=BE=D1=81=D1=82=D0=BE=D1=8F=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20+=20=D1=81=D0=B1=D1=80=D0=BE=D1=81=20=D1=81?= =?UTF-8?q?=D1=87=D1=91=D1=82=D1=87=D0=B8=D0=BA=D0=BE=D0=B2=20=D0=B2=20/co?= =?UTF-8?q?mplete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/bubblewords.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/routers/bubblewords.py b/routers/bubblewords.py index 573d072..cf55cc5 100644 --- a/routers/bubblewords.py +++ b/routers/bubblewords.py @@ -379,13 +379,18 @@ async def complete_bubble_level(request: Request): score = xp_result["points"] await conn.execute(""" - INSERT INTO bubble_words_progress (user_id, levels_completed, total_score, level, current_hints_used) - VALUES ($1, 1, $2, $3, 0) + INSERT INTO bubble_words_progress + (user_id, levels_completed, total_score, level, + current_hints_used, current_list_opened, current_level_words, hinted_words) + VALUES ($1, 1, $2, $3, 0, 0, '[]'::jsonb, '{}') ON CONFLICT (user_id) DO UPDATE SET levels_completed = bubble_words_progress.levels_completed + 1, total_score = bubble_words_progress.total_score + $2, level = $3, - current_hints_used = 0 + current_hints_used = 0, + current_list_opened = 0, + current_level_words = '[]'::jsonb, + hinted_words = '{}' """, telegram_id, score, current_level) # Данные для достижений