From a2ab8f25d0afb7c6a9fa4f76290fc62b9a718579 Mon Sep 17 00:00:00 2001 From: Michael <50274907+saleweaver@users.noreply.github.com> Date: Fri, 20 Dec 2024 19:52:46 +0000 Subject: [PATCH] Update load_all_pages.py --- sp_api/util/load_all_pages.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sp_api/util/load_all_pages.py b/sp_api/util/load_all_pages.py index 2c2d77dd..d9b5c35a 100644 --- a/sp_api/util/load_all_pages.py +++ b/sp_api/util/load_all_pages.py @@ -41,10 +41,10 @@ def wrapper(*args, **kwargs): ) if sleep_time > 0: time.sleep(sleep_time) - if next_token_only: - kwargs = {next_token_param: res.next_token} + if next_token_only: + kwargs = {next_token_param: res.next_token} else: - kwargs.update({next_token_param: res.next_token, **extras}) + kwargs.update({next_token_param: res.next_token, **extras}) else: done = True