From deaf63aa847830088e06dca71aa941042eef4913 Mon Sep 17 00:00:00 2001 From: Maria Tenetko Date: Fri, 1 Nov 2024 20:56:08 +0300 Subject: [PATCH] (fix) fixed for wave 29 --- .gitignore | 1 + feeder.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d17ab99..0ae3804 100644 --- a/.gitignore +++ b/.gitignore @@ -164,3 +164,4 @@ config.json # xlsx xlsx +*.sql diff --git a/feeder.py b/feeder.py index e97a75b..092267d 100644 --- a/feeder.py +++ b/feeder.py @@ -27,8 +27,10 @@ def get_project_id(self): if page_count > 1: for page_number in range(2, page_count + 1): + sleep(12) url = f"https://api.survey-studio.com/projects?PageSize=100&PageNumber={page_number}" response = requests.get(url, headers=self.headers).json() + # print(response) projects += response["body"] for project in projects: @@ -59,7 +61,7 @@ def create_results_request(self, project_id, counter_id): "exportQuestionText": false, "exportLabelsInsteadValues": false, "exportLabelsAndCodeValues": true, - "ignoreErrors": false, + "ignoreErrors": true, "exportHostAddress": false, "exportUserAgent": false, "exportInterviewDumpUrl": false,