Skip to content

Commit

Permalink
Fixed pagenation
Browse files Browse the repository at this point in the history
Inconsistent variable name resulted in pagenation not working at all.
  • Loading branch information
kohsuke authored Oct 25, 2024
1 parent 521bf2a commit 4d614c2
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 4d614c2

Please sign in to comment.