Aonly Check events

merge-requests/30/head
Bob Mottram 2023-09-18 13:11:16 +01:00
parent 626daaaea1
commit 6e101c17a1
1 changed files with 3 additions and 0 deletions

View File

@ -239,6 +239,9 @@ def _sort_todays_events(events: []) -> []:
# convert the list to a dict indexed on time
for tag in events:
# only check events (not places)
if tag['type'] != 'Event':
continue
event_time = \
datetime.strptime(tag['startTime'],
"%Y-%m-%dT%H:%M:%S%z")