diff --git a/questions.py b/questions.py index fed4105..e07c47d 100644 --- a/questions.py +++ b/questions.py @@ -277,7 +277,7 @@ class QuestionNumericInterval(Question): # answer = locale.atof(self['answer']) except ValueError: - self['comments'] = '\n\n'.join(['A resposta dada não é numérica.', self['comments']]) + self['comments'] = 'A resposta dada não é numérica.' self['grade'] = 0.0 else: self['grade'] = 1.0 if lower <= answer <= upper else 0.0 @@ -326,7 +326,7 @@ class QuestionTextArea(Question): self['grade'] = float(out) elif isinstance(out, dict): - self['comments'] = out.get('comments', '') + self['comments'] = out.get('comments', self['comments']) try: self['grade'] = float(out['grade']) except ValueError: diff --git a/templates/review-question.html b/templates/review-question.html index 1e942e6..83f9e50 100644 --- a/templates/review-question.html +++ b/templates/review-question.html @@ -82,7 +82,7 @@
{{ round(q['grade'] * q['points'], 2) }} pontos
- {{ md(q['comments'], q) }}
+ {{ q['comments'] }}