😊 Emoji в услуги, мастеров + fix await + соответствие кнопок
- config.py: добавлены emoji к услугам (💪 Массаж, 🎈 SPA, 💄 Косметология) - config.py: добавлены emoji к мастерам (👸 Анна, 💃 Мария, 🧑⚖️ Алексей) - booking.py: добавлен await перед get_busy_times (исправление ошибки) - mybookings.py: текст кнопки "📖 Мои записи" → "📄 Мои записи" - about.py: текст "ℹ️ О компании" → "ℹ️ О нас"
This commit is contained in:
+6
-6
@@ -10,16 +10,16 @@ if not BOT_TOKEN:
|
|||||||
|
|
||||||
# Services catalog
|
# Services catalog
|
||||||
SERVICES = {
|
SERVICES = {
|
||||||
"service_massage": "Массаж",
|
"service_massage": "💪 Массаж",
|
||||||
"service_spa": "SPA",
|
"service_spa": "🎈 SPA",
|
||||||
"service_cosmetology": "Косметология",
|
"service_cosmetology": "💄 Косметология",
|
||||||
}
|
}
|
||||||
|
|
||||||
# Masters list
|
# Masters list
|
||||||
MASTERS = {
|
MASTERS = {
|
||||||
"master_anna": "Анна",
|
"master_anna": "👸 Анна",
|
||||||
"master_maria": "Мария",
|
"master_maria": "💃 Мария",
|
||||||
"master_alex": "Алексей",
|
"master_alex": "🧑⚖️ Алексей",
|
||||||
}
|
}
|
||||||
|
|
||||||
# Available time slots
|
# Available time slots
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from aiogram.fsm.context import FSMContext
|
|||||||
|
|
||||||
router = Router()
|
router = Router()
|
||||||
|
|
||||||
@router.message(F.text == "ℹ️ О компании")
|
@router.message(F.text == "ℹ️ О нас")
|
||||||
async def about(message: Message, state: FSMContext):
|
async def about(message: Message, state: FSMContext):
|
||||||
await state.clear() # 🔥 СБРОС FSM
|
await state.clear() # 🔥 СБРОС FSM
|
||||||
|
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ async def choose_date(
|
|||||||
|
|
||||||
data = await state.get_data()
|
data = await state.get_data()
|
||||||
|
|
||||||
busy_times = get_busy_times(
|
busy_times = await get_busy_times(
|
||||||
master=data.get('master', '?'),
|
master=data.get('master', '?'),
|
||||||
date=selected_date
|
date=selected_date
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ router = Router()
|
|||||||
|
|
||||||
|
|
||||||
@router.message(
|
@router.message(
|
||||||
F.text == "📖 Мои записи"
|
F.text == "📄 Мои записи"
|
||||||
)
|
)
|
||||||
async def my_bookings(
|
async def my_bookings(
|
||||||
message: Message
|
message: Message
|
||||||
|
|||||||
Reference in New Issue
Block a user