main
Bob Mottram 2021-05-31 11:24:48 +01:00
parent 2a62dd7e26
commit eeb2f98329
1 changed files with 8 additions and 5 deletions

View File

@ -297,11 +297,14 @@ def todaysEventsCheck(baseDir: str, nickname: str, domain: str) -> bool:
eventTime = \
datetime.strptime(tag['startTime'],
"%Y-%m-%dT%H:%M:%S%z")
if int(eventTime.strftime("%Y")) == year and \
int(eventTime.strftime("%m")) == monthNumber and \
int(eventTime.strftime("%d")) == dayNumber:
eventsExist = True
break
if int(eventTime.strftime("%d")) != dayNumber:
continue
if int(eventTime.strftime("%m")) != monthNumber:
continue
if int(eventTime.strftime("%Y")) != year:
continue
eventsExist = True
break
return eventsExist