upd the description in holidays.csv
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ def remind(chat_to_repeat, today):
|
||||
holidays = tuple(csv.reader(holidays_file))[1:]
|
||||
for entry in holidays:
|
||||
date, holiday, description = entry
|
||||
if holiday == 'День программиста' and today.year % 4 == 0:
|
||||
if today.year % 4 == 0 and holiday == 'День программиста':
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user