[B.END] Proper way to handle Privat/Public events, Confirmed/Cancelled
This commit is contained in:
parent
e99740cb30
commit
cb3a1a4a64
|
@ -126,7 +126,9 @@ def getEvents(baseDay, interval):
|
||||||
repetition['until'] = None
|
repetition['until'] = None
|
||||||
elif k[0] == 'CLASS':
|
elif k[0] == 'CLASS':
|
||||||
# Store a boolean flag. True if PRIVATE
|
# 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 single event push into list
|
||||||
if repetition['single'] == True:
|
if repetition['single'] == True:
|
||||||
events += [event_dict]
|
events += [event_dict]
|
||||||
|
|
Loading…
Reference in New Issue