Skip to content

Commit

Permalink
Tweak naming
Browse files Browse the repository at this point in the history
  • Loading branch information
squeaky-pl committed Feb 27, 2024
1 parent 001467b commit c5e0045
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions inbox/events/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,16 @@ def sync_events(
A list of uncommited Event instances
"""
updates = []
items = self._get_raw_events(calendar_uid, sync_from_time)
raw_events = self._get_raw_events(calendar_uid, sync_from_time)
read_only_calendar = self.calendars_table.get(calendar_uid, True)
for item in iterate_and_periodically_switch_to_gevent(items):
for raw_event in iterate_and_periodically_switch_to_gevent(raw_events):
try:
parsed = parse_event_response(item, read_only_calendar)
parsed = parse_event_response(raw_event, read_only_calendar)
updates.append(parsed)
except (arrow.parser.ParserError, ValueError):
self.log.warning("Skipping unparseable event", exc_info=True, raw=item)
self.log.warning(
"Skipping unparseable event", exc_info=True, raw=raw_event
)

return updates

Expand Down

0 comments on commit c5e0045

Please sign in to comment.