correctly handle legacy case: question type not set
This commit is contained in:
parent
2c5274e54b
commit
abdf27372b
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class Response(object):
|
|||
for qugroup in self.questionnaire.questionGroups:
|
||||
score = scoreMax = 0.0
|
||||
for qu in qugroup.questions:
|
||||
if qu.questionType != 'value_selection':
|
||||
if qu.questionType not in (None, 'value_selection'):
|
||||
continue
|
||||
value = self.values.get(qu)
|
||||
if value is None or isinstance(value, basestring):
|
||||
|
|
Loading…
Add table
Reference in a new issue