fixes bug where color hex values where not passed along (variable mixup)

This commit is contained in:
2020-05-30 23:33:55 +02:00
parent 70197ee393
commit 0f47ff15dd
2 changed files with 3 additions and 3 deletions

Submodule backend updated: 87a229f791...183bf60fc0

View File

@ -147,8 +147,8 @@ def fetchCalendarEvents(user, calendars, startDate, endDate):
# handle weird colors from google # handle weird colors from google
color = event.get('colorId') color = event.get('colorId')
if color == None: if color == None:
newEvent.calendarHex = calendar.color newEvent.colorHex = calendar.color
newEvent.evnetColorId = None newEvent.eventColorId = None
else: else:
newEvent.eventColorId = color newEvent.eventColorId = color