[B.END] Trying to support event categories

This commit is contained in:
giuliof 2020-04-17 22:52:47 +02:00
parent 97dc951052
commit 7093110401
1 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,10 @@ def getEvents(baseDay, interval):
event_dict['CLASS'] = k[1]
elif k[0] == 'STATUS':
event_dict['STATUS'] = k[1]
elif k[0] == 'CATEGORIES':
if 'CATEGORIES' not in event_dict:
event_dict['CATEGORIES'] = []
event_dict['CATEGORIES'] += [k[1]]
# If single event push into list
if repetition['single'] == True:
events += [event_dict]