[B.END] Added flag for private events

This commit is contained in:
giuliof 2020-04-17 19:46:45 +02:00
parent 5e391b9efa
commit 54ecdf5a8c
1 changed files with 3 additions and 1 deletions

View File

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