Commit 739d25328eb537d15045109abf37f13e54d6c002
1 parent
fe744c8c
Exists in
master
and in
1 other branch
- changed some logger messages
Showing
3 changed files
with
11 additions
and
5 deletions
Show diff stats
BUGS.md
| @@ -2,10 +2,8 @@ | @@ -2,10 +2,8 @@ | ||
| 2 | BUGS: | 2 | BUGS: |
| 3 | 3 | ||
| 4 | - tabelas nas perguntas radio/checkbox não ocupam todo o espaço como em question. | 4 | - tabelas nas perguntas radio/checkbox não ocupam todo o espaço como em question. |
| 5 | -- servidor http com redirect para https. | ||
| 6 | -- servir imagens/ficheiros. | ||
| 7 | -- codemirror em textarea. | ||
| 8 | -- topicos virtuais nao deveriam aparecer. na construção da árvore os sucessores seriam ligados directamente aos predecessores. Ou então | 5 | +- topicos virtuais nao deveriam aparecer. na construção da árvore os sucessores seriam ligados directamente aos predecessores. |
| 6 | +- Criar outra estrutura organizada em capítulos (conjuntos de tópicos). Permitir capítulos de capítulos, etc. | ||
| 9 | 7 | ||
| 10 | 8 | ||
| 11 | - reportar comentarios após submeter. | 9 | - reportar comentarios após submeter. |
| @@ -23,8 +21,14 @@ BUGS: | @@ -23,8 +21,14 @@ BUGS: | ||
| 23 | - titulos das perguntas não suportam markdown | 21 | - titulos das perguntas não suportam markdown |
| 24 | - generators not working: bcrypt (ver blog) | 22 | - generators not working: bcrypt (ver blog) |
| 25 | 23 | ||
| 24 | + | ||
| 26 | TODO: | 25 | TODO: |
| 27 | 26 | ||
| 27 | +- servir imagens/ficheiros. | ||
| 28 | +- reload das perguntas enquanto online. | ||
| 29 | +- tabela de progresso de todos os alunos por topico. | ||
| 30 | +- tabela com perguntas / quantidade de respostas certas/erradas. | ||
| 31 | +- tabela com topicos / quantidade de estrelas. | ||
| 28 | - pymips: activar/desactivar instruções | 32 | - pymips: activar/desactivar instruções |
| 29 | - implementar servidor http com redirect para https. | 33 | - implementar servidor http com redirect para https. |
| 30 | - usar codemirror no textarea | 34 | - usar codemirror no textarea |
knowledge.py
| @@ -71,7 +71,7 @@ class StudentKnowledge(object): | @@ -71,7 +71,7 @@ class StudentKnowledge(object): | ||
| 71 | topic = self.get_recommended_topic() | 71 | topic = self.get_recommended_topic() |
| 72 | 72 | ||
| 73 | self.current_topic = topic | 73 | self.current_topic = topic |
| 74 | - logger.info(f'Topic set to "{topic}"') | 74 | + # logger.info(f'Topic set to "{topic}"') |
| 75 | 75 | ||
| 76 | # generate question instances for current topic | 76 | # generate question instances for current topic |
| 77 | factory = self.deps.node[topic]['factory'] | 77 | factory = self.deps.node[topic]['factory'] |
learnapp.py
| @@ -111,6 +111,7 @@ class LearnApp(object): | @@ -111,6 +111,7 @@ class LearnApp(object): | ||
| 111 | level = knowledge.get_topic_level(finished_topic) | 111 | level = knowledge.get_topic_level(finished_topic) |
| 112 | date = str(knowledge.get_topic_date(finished_topic)) | 112 | date = str(knowledge.get_topic_date(finished_topic)) |
| 113 | finished_questions = knowledge.get_finished_questions() | 113 | finished_questions = knowledge.get_finished_questions() |
| 114 | + logger.info(f'User "{uid}" finished "{finished_topic}"') | ||
| 114 | 115 | ||
| 115 | with self.db_session(autoflush=False) as s: | 116 | with self.db_session(autoflush=False) as s: |
| 116 | # save topic | 117 | # save topic |
| @@ -147,6 +148,7 @@ class LearnApp(object): | @@ -147,6 +148,7 @@ class LearnApp(object): | ||
| 147 | # ------------------------------------------------------------------------ | 148 | # ------------------------------------------------------------------------ |
| 148 | def start_topic(self, uid, topic): | 149 | def start_topic(self, uid, topic): |
| 149 | self.online[uid]['state'].init_topic(topic) | 150 | self.online[uid]['state'].init_topic(topic) |
| 151 | + logger.info(f'User "{uid}" started "{topic}"') | ||
| 150 | 152 | ||
| 151 | # ------------------------------------------------------------------------ | 153 | # ------------------------------------------------------------------------ |
| 152 | # Fill db table 'Topic' with topics from the graph if not already there. | 154 | # Fill db table 'Topic' with topics from the graph if not already there. |