Skip to content

Commit

Permalink
Fixed pagination (#810)
Browse files Browse the repository at this point in the history
Inconsistent variable name resulted in pagination not working at all.
  • Loading branch information
kohsuke authored Nov 5, 2024
1 parent 521bf2a commit a1ed6ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcalcli/gcal.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,11 @@ def _get_cached(self):
pass
# fall through

pageToken = None
page_token = None
while True:
cal_list = self._retry_with_backoff(
self.get_cal_service().calendarList().list(
pageToken=pageToken)
pageToken=page_token)
)

self.all_cals.extend(cal_list['items'])
Expand Down

0 comments on commit a1ed6ad

Please sign in to comment.