[B.END] Proper way to handle Privat/Public events, Confirmed/Cancelled

This commit is contained in:
giuliof 2020-04-17 22:35:17 +02:00
parent e99740cb30
commit cb3a1a4a64
1 changed files with 3 additions and 1 deletions

View File

@ -126,7 +126,9 @@ def getEvents(baseDay, interval):
repetition['until'] = None
elif k[0] == 'CLASS':
# Store a boolean flag. True if PRIVATE
event_dict['CLASS'] = k[1].lower() == 'private'
event_dict['CLASS'] = k[1]
elif k[0] == 'STATUS':
event_dict['STATUS'] = k[1]
# If single event push into list
if repetition['single'] == True:
events += [event_dict]