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