Updated gam calendars <CalendarEntity> import event icaluid <iCalUID> json <JSONdata>

This commit is contained in:
Ross Scroggs
2024-07-17 16:50:04 -07:00
parent 5b7e8b6e01
commit 5b6c7a30d7
5 changed files with 23 additions and 9 deletions

View File

@@ -2,6 +2,11 @@
Merged GAM-Team version
6.77.15
Updated `gam calendars <CalendarEntity> import event icaluid <iCalUID> json <JSONdata>` to handle API
constraints on recurring events.
6.77.14
Fixed bug in `gam calendars <CalendarEntity> import event icaluid <iCalUID> json <JSONdata>` that caused an error.

View File

@@ -36918,9 +36918,13 @@ def _getCalendarEventAttribute(myarg, body, parameters, function):
parameters['attendees'].append(addAttendee)
elif myarg == 'json':
jsonData = getJSON(EVENT_JSON_CLEAR_FIELDS)
if function in {'insert', 'import'}:
if function == 'insert':
body.update(jsonData)
clearJSONfields(body, EVENT_JSON_INSERT_CLEAR_FIELDS)
elif function == 'import':
body.update(jsonData)
if 'id' in body:
body['iCalUID'] = body.pop('id')
elif function == 'update':
if 'event' in jsonData and 'attendees' in jsonData['event']:
parameters['attendees'].extend(jsonData['event'].pop('attendees'))