# HG changeset patch # User Matti Hamalainen # Date 1467704982 -10800 # Node ID c1764df8b65cecf0b3da547fc935fd8809543e89 # Parent 2d7767f0fb673d8a30e92c69b3d71b3fe168756d Update events. diff -r 2d7767f0fb67 -r c1764df8b65c multimerge.py --- a/multimerge.py Tue Jul 05 10:36:22 2016 +0300 +++ b/multimerge.py Tue Jul 05 10:49:42 2016 +0300 @@ -420,7 +420,10 @@ # Does the event exist already in the target? if event["gcm_id"] in dst_gcm_ids: ## Yes. Thus, we just update the event. - event["status"] = "confirmed" + try: + new_event = service.events().update(calendarId=cfg.dest_id, eventId=event["id"], body=event).execute() + except Exception as e: + gcm_fatal("Failed to update event:\n{0}\n\nERROR: {1}\n".format(event, str(e))) else: ## Event does not seem to exist. Insert new event. event.pop("iCalUID", None) # Remove the iCalUID, having it conflicts with event ID