From 4d614c2540822089539ccb9ee5a42a7cb4b1f7ef Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Fri, 25 Oct 2024 10:34:57 +0900 Subject: [PATCH] Fixed pagenation Inconsistent variable name resulted in pagenation not working at all. --- gcalcli/gcal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcalcli/gcal.py b/gcalcli/gcal.py index a777023..3c8619d 100644 --- a/gcalcli/gcal.py +++ b/gcalcli/gcal.py @@ -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'])