Skip to content

Commit

Permalink
Fixed bug with a large number of empty dates
Browse files Browse the repository at this point in the history
  • Loading branch information
cubicbyte committed Feb 13, 2023
1 parent bebde59 commit 70eacc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot/pages/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 70eacc7

Please sign in to comment.