From d7ee82e3a5e3659ff36328d4a8d57e21b3b5e338 Mon Sep 17 00:00:00 2001 From: DevProject Agent Date: Sun, 14 Jun 2026 19:56:41 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=8A=20Emoji=20=D0=B2=20=D1=83=D1=81?= =?UTF-8?q?=D0=BB=D1=83=D0=B3=D0=B8,=20=D0=BC=D0=B0=D1=81=D1=82=D0=B5?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=20+=20fix=20await=20+=20=D1=81=D0=BE=D0=BE?= =?UTF-8?q?=D1=82=D0=B2=D0=B5=D1=82=D1=81=D1=82=D0=B2=D0=B8=D0=B5=20=D0=BA?= =?UTF-8?q?=D0=BD=D0=BE=D0=BF=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - config.py: добавлены emoji к услугам (💪 Массаж, 🎈 SPA, 💄 Косметология) - config.py: добавлены emoji к мастерам (👸 Анна, 💃 Мария, 🧑‍⚖️ Алексей) - booking.py: добавлен await перед get_busy_times (исправление ошибки) - mybookings.py: текст кнопки "📖 Мои записи" → "📄 Мои записи" - about.py: текст "ℹ️ О компании" → "ℹ️ О нас" --- app/config.py | 12 ++++++------ app/handlers/about.py | 2 +- app/handlers/booking.py | 2 +- app/handlers/mybookings.py | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/config.py b/app/config.py index e375f50..8471cfb 100644 --- a/app/config.py +++ b/app/config.py @@ -10,16 +10,16 @@ if not BOT_TOKEN: # Services catalog SERVICES = { - "service_massage": "Массаж", - "service_spa": "SPA", - "service_cosmetology": "Косметология", + "service_massage": "💪 Массаж", + "service_spa": "🎈 SPA", + "service_cosmetology": "💄 Косметология", } # Masters list MASTERS = { - "master_anna": "Анна", - "master_maria": "Мария", - "master_alex": "Алексей", + "master_anna": "👸 Анна", + "master_maria": "💃 Мария", + "master_alex": "🧑‍⚖️ Алексей", } # Available time slots diff --git a/app/handlers/about.py b/app/handlers/about.py index 6ed44ae..17c0ece 100644 --- a/app/handlers/about.py +++ b/app/handlers/about.py @@ -5,7 +5,7 @@ from aiogram.fsm.context import FSMContext router = Router() -@router.message(F.text == "ℹ️ О компании") +@router.message(F.text == "ℹ️ О нас") async def about(message: Message, state: FSMContext): await state.clear() # 🔥 СБРОС FSM diff --git a/app/handlers/booking.py b/app/handlers/booking.py index 1af6998..e51b2ec 100644 --- a/app/handlers/booking.py +++ b/app/handlers/booking.py @@ -125,7 +125,7 @@ async def choose_date( data = await state.get_data() - busy_times = get_busy_times( + busy_times = await get_busy_times( master=data.get('master', '?'), date=selected_date ) diff --git a/app/handlers/mybookings.py b/app/handlers/mybookings.py index 1bbd4f0..87cc4ed 100644 --- a/app/handlers/mybookings.py +++ b/app/handlers/mybookings.py @@ -23,7 +23,7 @@ router = Router() @router.message( - F.text == "📖 Мои записи" + F.text == "📄 Мои записи" ) async def my_bookings( message: Message