Commit 37afe717df91f5182a12dd4cec7a333bd4a6d186
1 parent
d5ac4a8b
Exists in
master
and in
1 other branch
- removed debug prints from QuestionNumeric
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
BUGS.md
1 | 1 | ||
2 | # BUGS | 2 | # BUGS |
3 | 3 | ||
4 | +- Review de um teste que foi apagado rebenta. | ||
4 | - Gerar pdf's com todos os testes no final (pdfkit). | 5 | - Gerar pdf's com todos os testes no final (pdfkit). |
5 | - permitir eliminar teste a decorrer de modo a que o aluno possa recomeçar (e.g. noutro browser) | 6 | - permitir eliminar teste a decorrer de modo a que o aluno possa recomeçar (e.g. noutro browser) |
6 | - servidor nao esta a lidar com eventos scroll/resize. ignorar? | 7 | - servidor nao esta a lidar com eventos scroll/resize. ignorar? |
questions.py
@@ -408,8 +408,6 @@ class QuestionTextNumeric(Question): | @@ -408,8 +408,6 @@ class QuestionTextNumeric(Question): | ||
408 | super().correct() | 408 | super().correct() |
409 | if self['answer'] is not None: | 409 | if self['answer'] is not None: |
410 | lower, upper = self['correct'] | 410 | lower, upper = self['correct'] |
411 | - print(lower) | ||
412 | - print(upper) | ||
413 | try: | 411 | try: |
414 | self['grade'] = 1.0 if lower <= float(self['answer']) <= upper else 0.0 | 412 | self['grade'] = 1.0 if lower <= float(self['answer']) <= upper else 0.0 |
415 | except TypeError: | 413 | except TypeError: |