mirror of
https://github.com/olegvodyanov/docbot.git
synced 2026-02-02 02:45:46 +03:00
change time
This commit is contained in:
parent
4373692653
commit
3315c8ccc7
@ -111,7 +111,7 @@ def build_month_keyboard(current: date) -> InlineKeyboardMarkup:
|
||||
return InlineKeyboardMarkup(keyboard)
|
||||
|
||||
|
||||
def build_time_keyboard(selected: date, start_hour: int = 9, end_hour: int = 21, step_minutes: int = 60) -> InlineKeyboardMarkup:
|
||||
def build_time_keyboard(selected: date, start_hour: int = 9, end_hour: int = 21, step_minutes: int = 1src/core/inline_calendar.py0) -> InlineKeyboardMarkup:
|
||||
buttons: list[list[InlineKeyboardButton]] = []
|
||||
row: list[InlineKeyboardButton] = []
|
||||
current = datetime.combine(selected, datetime.min.time()).replace(hour=start_hour, minute=0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user