Question utils
question.utils:
question_by_key(key, questions, is_skippable=None, drop_choices=[])
Return question by given key
Source code in question/utils.py
19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
total_unanswered_questions(participant, questions)
Return how many questions have not been answered yet by the participant
Source code in question/utils.py
13 14 15 16 |
|
unanswered_questions(participant, questions, randomize=False, cutoff_index=None)
Generator to give next unasked profile question and prepare its result - participant: participant who will be checked for unanswered questions - questions: list of questions from which to select an unanswered question - optionally, randomize order of questions
Source code in question/utils.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|