You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I obtain data, I find that the next_token returned by each page request is the same, resulting in duplicate data obtained through next_token
my code:
def get_data(self, next_token):
req_data = self.awd.list_inventory(
next_token=next_token,
maxResults=200
)
next_token = req_data.next_token
self.data_list += req_data.payload['inventory']
if req_data.next_token is not None:
self.get_data(next_token)
else:
return self.data_list
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I obtain data, I find that the next_token returned by each page request is the same, resulting in duplicate data obtained through next_token
my code:
def get_data(self, next_token):
Beta Was this translation helpful? Give feedback.
All reactions