Commit c172deac2755cd96272ea061e27b06d5a2a61238
1 parent
6f0ef3e3
Exists in
master
and in
1 other branch
- minor update BUGS
Showing
2 changed files
with
1 additions
and
4 deletions
Show diff stats
BUGS.md
| ... | ... | @@ -12,7 +12,6 @@ |
| 12 | 12 | - mostrar feedback/solucoes quando acerta, ou excede max tries. |
| 13 | 13 | - mostrar icon "loading..." enquanto está a corrigir uma pergunta. |
| 14 | 14 | - Criar outra estrutura organizada em capítulos (conjuntos de tópicos). Permitir capítulos de capítulos, etc. talvez usar grafos de grafos... |
| 15 | -- each topic only loads a sample of K questions (max) in random order. | |
| 16 | 15 | |
| 17 | 16 | - session management. close after inactive time. |
| 18 | 17 | - radio e checkboxes, aceitar numeros como seleccao das opcoes. |
| ... | ... | @@ -31,6 +30,7 @@ |
| 31 | 30 | |
| 32 | 31 | # FIXED |
| 33 | 32 | |
| 33 | +- each topic only loads a sample of K questions (max) in random order. | |
| 34 | 34 | - change password modal nao aparece no ipad (safari e firefox) |
| 35 | 35 | - detect questions in questions.yaml without ref -> error ou generate default. |
| 36 | 36 | - generators e correct scripts que durem muito tempo bloqueiam o eventloop do tornado. | ... | ... |
knowledge.py
| ... | ... | @@ -95,8 +95,6 @@ class StudentKnowledge(object): |
| 95 | 95 | self.wrong_answers = 0 |
| 96 | 96 | self.finished_questions = [] |
| 97 | 97 | |
| 98 | - | |
| 99 | - # TODO select a subset of question and randomize order | |
| 100 | 98 | questionlist = random.sample(questionlist, k=min(8, len(questionlist))) |
| 101 | 99 | |
| 102 | 100 | self.questions = [factory[qref].generate() for qref in questionlist] |
| ... | ... | @@ -160,7 +158,6 @@ class StudentKnowledge(object): |
| 160 | 158 | factory = self.deps.node[self.current_topic]['factory'] |
| 161 | 159 | self.questions.append(factory[q['ref']].generate()) |
| 162 | 160 | |
| 163 | - | |
| 164 | 161 | # returns answered and corrected question |
| 165 | 162 | return grade |
| 166 | 163 | ... | ... |