Fix infinite loop in support flow

The support flow was using `yes` and `no` to mean emergency/not
emergency. But not in all places – in one place it was using
`True`/`False` instead.

We were treating anything other than `yes`/`no` as a non-answer, which
means ask the question again. Because of the `True`/`False` thing, there
was no way of the user providing a valid `yes`/`no` answer. Which means
that we just kept asking them the question again and again and they got
stuck in a loop.
This commit is contained in:
Chris Hill-Scott
2017-03-07 09:44:21 +00:00
parent 3e1553489b
commit 56a282f2a0
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ def triage():
return redirect(url_for(
'.feedback',
ticket_type='problem',
severe=(form.severe.data == 'yes')
severe=form.severe.data
))
return render_template(
'views/support/triage.html',