Skip to content

Fixing a typo in the available keys, forgetting the comma. Also, shortening the documentation requirements on valid keys #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions QualtricsAPI/Survey/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def get_survey_responses(self, survey=None, verify=None, **kwargs):
'startDate',
'endDate',
'timeZone',
'breakoutSets'
'breakoutSets',
'sortByLastModifiedDate',
'filterId',
'embeddedDataIds',
Expand All @@ -229,7 +229,7 @@ def get_survey_responses(self, survey=None, verify=None, **kwargs):
]

for key in list(kwargs.keys()):
assert key in valid_keys, "Hey there! You can only pass in parameters with names in the list, ['useLabels', 'includeLabelColumns', 'exportResponsesInProgress', 'limit', 'seenUnansweredRecode', 'multiselectSeenUnansweredRecode', 'includeDisplayOrder', 'startDate', 'endDate', 'timeZone']"
assert key in valid_keys, f"Hey there! You can only pass in parameters with names in the list, [{', '.join(valid_keys)}]"
if key == 'useLabels':
assert 'includeLabelColumns' not in list(kwargs.keys(
)), 'Hey there, you cannot pass both the "includeLabelColumns" and the "useLabels" parameters at the same time. Please pass just one and try again.'
Expand Down