Update holidays.csv

This commit is contained in:
Rykov7
2023-10-29 22:37:26 +03:00
parent 755881a7c4
commit 108085d3b7
2 changed files with 7 additions and 13 deletions
+1 -2
View File
@@ -32,8 +32,7 @@ def remind(chat_to_repeat, today):
date = "09-12-1000" # instead of 09-13-1000 in non-leap-year
date = dt.strptime(date, "%m-%d-%Y")
if today.month == date.month and today.day == date.day:
notification = f"🎉 Сегодня <b><u>{holiday.upper()}</u></b>!\
\n\n{description}."
notification = f"🎉 Сегодня <b>{holiday.upper()}</b>!\n\n{description}"
if date.year != 1000:
age = today.year - date.year
notification += f"\n\n🥳 <i>{age}-ая годовщина</i>"