diff --git a/BUGS.md b/BUGS.md index 41aa4e8..46a942a 100644 --- a/BUGS.md +++ b/BUGS.md @@ -1,6 +1,8 @@ # BUGS +- 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 +- erro na password com ./initdb.py --db debug.db -u 1 "Miguel Barao" --pw q - initdb está a inicializar com passwords iguais aos numeros. deveria ser vazio para alunos definirem. - 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. - o eventloop está a bloquear. correção do teste é blocking. usar threadpoolexecutor? diff --git a/questions.py b/questions.py index 4bf44a2..5ac8d16 100644 --- a/questions.py +++ b/questions.py @@ -332,8 +332,8 @@ class QuestionTextArea(Question): 'correct': '' # trying to execute this will fail => grade 0.0 }) - # self['correct'] = path.join(self['path'], self['correct']) - self['correct'] = path.abspath(path.normpath(path.join(self['path'], self['correct']))) + self['correct'] = path.join(self['path'], self['correct']) + # self['correct'] = path.abspath(path.normpath(path.join(self['path'], self['correct']))) # abspath will prepend cwd, which is plain wrong... #------------------------------------------------------------------------ # can return negative values for wrong answers -- libgit2 0.21.2