Commit 88efac09a80df2f4b6a31740f9b3b77ecc7949e1
1 parent
41f4bd7f
Exists in
master
and in
1 other branch
- fixed path of correct script in textarea questions
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
BUGS.md
1 | 1 | ||
2 | # BUGS | 2 | # BUGS |
3 | 3 | ||
4 | +- questions.py textarea has a abspath which does not make sense! why is it there? not working for perguntations, but seems to work for aprendizations | ||
5 | +- erro na password com ./initdb.py --db debug.db -u 1 "Miguel Barao" --pw q | ||
4 | - initdb está a inicializar com passwords iguais aos numeros. deveria ser vazio para alunos definirem. | 6 | - initdb está a inicializar com passwords iguais aos numeros. deveria ser vazio para alunos definirem. |
5 | - servir imagens das perguntas não funciona. Necessario passar a ref da pergunta no link para poder ajustar o path no FileHandler. Tem o problema do teste em JSON não conter a imagem. | 7 | - servir imagens das perguntas não funciona. Necessario passar a ref da pergunta no link para poder ajustar o path no FileHandler. Tem o problema do teste em JSON não conter a imagem. |
6 | - o eventloop está a bloquear. correção do teste é blocking. usar threadpoolexecutor? | 8 | - o eventloop está a bloquear. correção do teste é blocking. usar threadpoolexecutor? |
questions.py
@@ -332,8 +332,8 @@ class QuestionTextArea(Question): | @@ -332,8 +332,8 @@ class QuestionTextArea(Question): | ||
332 | 'correct': '' # trying to execute this will fail => grade 0.0 | 332 | 'correct': '' # trying to execute this will fail => grade 0.0 |
333 | }) | 333 | }) |
334 | 334 | ||
335 | - # self['correct'] = path.join(self['path'], self['correct']) | ||
336 | - self['correct'] = path.abspath(path.normpath(path.join(self['path'], self['correct']))) | 335 | + self['correct'] = path.join(self['path'], self['correct']) |
336 | + # self['correct'] = path.abspath(path.normpath(path.join(self['path'], self['correct']))) # abspath will prepend cwd, which is plain wrong... | ||
337 | 337 | ||
338 | #------------------------------------------------------------------------ | 338 | #------------------------------------------------------------------------ |
339 | # can return negative values for wrong answers | 339 | # can return negative values for wrong answers |