Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google: Pass eventTypes #664

Merged
merged 2 commits into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -132,7 +133,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 @@ -382,6 +385,7 @@ def watch_calendar(
try:
r = requests.post(
watch_url,
params={"eventTypes": "default"},
data=json.dumps(data),
headers=headers,
auth=OAuthRequestsWrapper(token),
Expand Down
Loading