Skip to content

Commit

Permalink
fix api pagination static schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
agrass committed Dec 22, 2021
1 parent 3149744 commit 6b48904
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ def request_params(self, next_page_token: Mapping[str, Any] = None, stream_state
stream_state = stream_state or {}
last_date = stream_state.get(self.cursor_field, self.start_date)
params = { 'form_id': self.form_id, 'token': self.token}
if self.schema_type != 'dynamic':
params['pagination'] = True
if last_date:
params.update(**{'start': last_date})
if next_page_token:
Expand All @@ -156,7 +158,7 @@ def path(self, **kwargs) -> str:
if self.schema_type == 'dynamic':
return "v3/answers"
else:
return "answers"
return "v3/answers_static"

def get_json_schema(self):
schema = super().get_json_schema()
Expand Down

0 comments on commit 6b48904

Please sign in to comment.