Исправление: кнопка Назад добавлена в выбор времени (time_slots.py)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
|
from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
|
||||||
from app.config import TIME_SLOTS
|
from app.config import TIME_SLOTS
|
||||||
|
from app.keyboards.back import get_back_button
|
||||||
|
|
||||||
|
|
||||||
def get_time_keyboard(busy_times):
|
def get_time_keyboard(busy_times):
|
||||||
@@ -17,4 +18,5 @@ def get_time_keyboard(busy_times):
|
|||||||
row = []
|
row = []
|
||||||
if row:
|
if row:
|
||||||
buttons.append(row)
|
buttons.append(row)
|
||||||
|
buttons.append(get_back_button())
|
||||||
return InlineKeyboardMarkup(inline_keyboard=buttons)
|
return InlineKeyboardMarkup(inline_keyboard=buttons)
|
||||||
|
|||||||
Reference in New Issue
Block a user