Skip to content
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

Kiss fix for no survey answers #137

Merged
merged 3 commits into from
May 5, 2020

Conversation

AmandaBirmingham
Copy link
Collaborator

Record at least ONE answer to each survey (or, failing even that, error in a way that explicitly describes the problem). Also, show logout link on error page.

… answer for each survey--even if user answers nothing--or, if we can't hack even that, throw a meaningful error.
…oices if determine_workflow keeps sending them there (even when they try to go "Home").
@AmandaBirmingham AmandaBirmingham changed the base branch from master to minimalInterface May 5, 2020 19:06
if len(survey_model) == 0 and \
(q_type == "STRING" or q_type == "TEXT"):
survey_model[str(survey_question_id)] = ""

if str(survey_question_id) not in survey_model:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this check come first?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, if the survey model is empty, putting the one on 194 first would cause us to skip all questions, leaving us with an empty survey again

@wasade wasade merged commit 0feb6cb into minimalInterface May 5, 2020
@AmandaBirmingham AmandaBirmingham deleted the kiss_fix_for_no_survey_answers branch May 8, 2020 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants