Commit d53f817bbc794f6e91e3bae455ddbce76d1d59ab
1 parent
802052f3
Exists in
master
and in
1 other branch
minor
Showing
2 changed files
with
7 additions
and
7 deletions
Show diff stats
BUGS.md
| 1 | 1 | ||
| 2 | # BUGS | 2 | # BUGS |
| 3 | 3 | ||
| 4 | -- na pagina grade.html as barras estao normalizadas para os limites scale_min e max do testte actual e nao do realizado. | 4 | +- na pagina grade.html as barras estao normalizadas para os limites scale_min e max do teste actual e nao do realizado. |
| 5 | - codigo `hello world` nao esta a preservar o whitespace. O renderer de markdown gera a tag <code> que não preserva whitespace. Necessario adicionar <pre>. | 5 | - codigo `hello world` nao esta a preservar o whitespace. O renderer de markdown gera a tag <code> que não preserva whitespace. Necessario adicionar <pre>. |
| 6 | - teste nao esta a mostrar imagens de vez em quando. | 6 | - teste nao esta a mostrar imagens de vez em quando. |
| 7 | - ordenacao das notas em /admin nao é numerica, é ascii... | 7 | - ordenacao das notas em /admin nao é numerica, é ascii... |
perguntations/questions.py
| @@ -220,17 +220,17 @@ class QuestionCheckbox(Question): | @@ -220,17 +220,17 @@ class QuestionCheckbox(Question): | ||
| 220 | if self['discount'] and not all(0.0 <= x <= 1.0 | 220 | if self['discount'] and not all(0.0 <= x <= 1.0 |
| 221 | for x in self['correct']): | 221 | for x in self['correct']): |
| 222 | 222 | ||
| 223 | - msg0 = ('+-------------- BEHAVIOR CHANGE NOTICE --------------+') | ||
| 224 | - msg1 = ('| Correct values must be in the interval [0.0, 1.0]. |') | ||
| 225 | - msg2 = ('| I will convert to the new behavior, but you should |') | ||
| 226 | - msg3 = ('| fix it in the question. |') | ||
| 227 | - msg4 = ('+----------------------------------------------------+') | 223 | + msg0 = ('+--------------- BEHAVIOR CHANGE NOTICE ---------------+') |
| 224 | + msg1 = ('| Correct values in checkbox questions must be in the |') | ||
| 225 | + msg2 = ('| interval [0.0, 1.0]. I will convert to the new |') | ||
| 226 | + msg3 = ('| behavior, for now, but you should fix it. |') | ||
| 227 | + msg4 = ('+------------------------------------------------------+') | ||
| 228 | logger.warning(msg0) | 228 | logger.warning(msg0) |
| 229 | logger.warning(msg1) | 229 | logger.warning(msg1) |
| 230 | logger.warning(msg2) | 230 | logger.warning(msg2) |
| 231 | logger.warning(msg3) | 231 | logger.warning(msg3) |
| 232 | logger.warning(msg4) | 232 | logger.warning(msg4) |
| 233 | - logger.warning(f'-> please fix "{self["ref"]}"') | 233 | + logger.warning(f'please fix "{self["ref"]}"') |
| 234 | 234 | ||
| 235 | # normalize to [0,1] | 235 | # normalize to [0,1] |
| 236 | self['correct'] = [(x+1)/2 for x in self['correct']] | 236 | self['correct'] = [(x+1)/2 for x in self['correct']] |