From 6926ae9fee7969b8104e353f92349b0041285780 Mon Sep 17 00:00:00 2001 From: Miguel Barão Date: Tue, 2 Jan 2018 18:41:20 +0000 Subject: [PATCH] - append comments instead of replace in question.correct --- questions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questions.py b/questions.py index 9d745cd..3a29253 100644 --- a/questions.py +++ b/questions.py @@ -277,7 +277,7 @@ class QuestionNumericInterval(Question): # answer = locale.atof(self['answer']) except ValueError: - self['comments'] = 'A resposta não é numérica.' + self['comments'] = '\n'.join(['A resposta não é numérica.', self['comments']]) self['grade'] = 0.0 else: self['grade'] = 1.0 if lower <= answer <= upper else 0.0 -- libgit2 0.21.2