Skip to content

Commit

Permalink
Google: Pass eventTypes (#664)
Browse files Browse the repository at this point in the history
* Google: Pass eventTypes

* pass eventTypes explicitly and not using kwargs
  • Loading branch information
squeaky-pl authored Feb 19, 2024
1 parent d877dd3 commit 5b5f90a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inbox/events/google.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Provide Google Calendar events."""

import datetime
import email.utils
import json
Expand Down Expand Up @@ -131,7 +132,9 @@ def _get_raw_events(
urllib.parse.quote(calendar_uid)
)
try:
return self._get_resource_list(url, updatedMin=sync_from_time_str)
return self._get_resource_list(
url, updatedMin=sync_from_time_str, eventTypes="default"
)
except requests.exceptions.HTTPError as exc:
assert exc.response is not None
if exc.response.status_code == 410:
Expand Down Expand Up @@ -381,6 +384,7 @@ def watch_calendar(
try:
r = requests.post(
watch_url,
params={"eventTypes": "default"},
data=json.dumps(data),
headers=headers,
auth=OAuthRequestsWrapper(token),
Expand Down

0 comments on commit 5b5f90a

Please sign in to comment.