Commit b6643fc89e9fed83cfb122c64e7bb3e992df0b6f
1 parent
6de2ef49
Exists in
master
and in
1 other branch
- minor change: log grade shows question ref
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
BUGS.md
1 | 1 | ||
2 | BUGS: | 2 | BUGS: |
3 | 3 | ||
4 | +- permitir adicionar users. página de admin. se pw vazia, gera pw por defeito. | ||
4 | - animação no final de cada topico para se perceber a transição | 5 | - animação no final de cada topico para se perceber a transição |
5 | - aumentar espaço a seguir às tabelas no texto | 6 | - aumentar espaço a seguir às tabelas no texto |
6 | - guardar state cada vez que topico termina | 7 | - guardar state cada vez que topico termina |
knowledge.py
@@ -83,7 +83,7 @@ class Knowledge(object): | @@ -83,7 +83,7 @@ class Knowledge(object): | ||
83 | q = self.current_question | 83 | q = self.current_question |
84 | q['finish_time'] = datetime.now() | 84 | q['finish_time'] = datetime.now() |
85 | grade = q.correct(answer) | 85 | grade = q.correct(answer) |
86 | - logger.debug(f'User {self.student}: grade = {grade}') | 86 | + logger.debug(f'User {self.student}: grade = {grade:.2} ({q["ref"]})') |
87 | 87 | ||
88 | # new question if answer is correct | 88 | # new question if answer is correct |
89 | if grade > 0.999: | 89 | if grade > 0.999: |