From f6cf71eee3092791295a964973de1127ad13d0ba Mon Sep 17 00:00:00 2001 From: Miguel Barão Date: Tue, 2 Jan 2018 19:48:06 +0000 Subject: [PATCH] - undo previous changes --- questions.py | 4 ++-- templates/review-question.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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'] }}

-- libgit2 0.21.2