Skip to content

Commit

Permalink
(fix) fixed for wave 29
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaTenetko committed Nov 1, 2024
1 parent 0bac675 commit deaf63a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,4 @@ config.json

# xlsx
xlsx
*.sql
4 changes: 3 additions & 1 deletion feeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit deaf63a

Please sign in to comment.