From 70eacc776b35712571b51345a6ae762287de5790 Mon Sep 17 00:00:00 2001 From: Bohdan Marukhnenko Date: Mon, 13 Feb 2023 21:59:52 +0200 Subject: [PATCH] Fixed bug with a large number of empty dates --- bot/pages/schedule.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot/pages/schedule.py b/bot/pages/schedule.py index 4e76d74..8fc9094 100644 --- a/bot/pages/schedule.py +++ b/bot/pages/schedule.py @@ -50,6 +50,7 @@ def create_message(message: types.Message, date: _date | str) -> dict: markup = types.InlineKeyboardMarkup(row_width=2) current_date = _date.today() + day_next = None for day in schedule: if day['date'] != date_str: day_next = day['date']