Skip to content

Commit

Permalink
Adding rules consent id to Qualtrics API (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-moore-97 authored Sep 1, 2023
1 parent 6f16e1d commit 3c036ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qualtrix/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def get_answer_from_result(result):
values = result["values"]
# Data sometimes has labels missing, so return null if val isnt found
return {
"rules_consent_id": values.get("RulesConsentID", None),
"ethnicity": labels.get("QID12", None),
"race": labels.get("QID36", None),
"gender": labels.get("QID14", None),
Expand Down

0 comments on commit 3c036ad

Please sign in to comment.