Skip to content

Commit

Permalink
Allowing guests to modify events (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviamclaughlin authored Apr 25, 2024
1 parent 9a87edc commit 94183ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/integrations/google_workspace/google_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def insert_event(start, end, emails, title, **kwargs):
"end": {"dateTime": end, "timeZone": time_zone},
"attendees": [{"email": email.strip()} for email in emails],
"summary": title,
"guestsCanModify": True,
}
body.update({convert_string_to_camel_case(k): v for k, v in kwargs.items()})
if "delegated_user_email" in kwargs and kwargs["delegated_user_email"] is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def test_insert_event_no_kwargs_no_delegated_email(
"end": {"dateTime": end, "timeZone": "America/New_York"},
"attendees": [{"email": email.strip()} for email in emails],
"summary": title,
"guestsCanModify": True,
},
calendarId="primary",
)
Expand Down Expand Up @@ -209,6 +210,7 @@ def test_insert_event_with_kwargs(
"end": {"dateTime": end, "timeZone": "Magic/Time_Zone"},
"attendees": [{"email": email.strip()} for email in emails],
"summary": title,
"guestsCanModify": True,
**kwargs,
},
calendarId="primary",
Expand Down

0 comments on commit 94183ee

Please sign in to comment.