Commit d36a0c3e4cee117120bbf68f54af1e6a9668345a
1 parent
4c4ed8e4
Exists in
master
and in
1 other branch
- review of tests is working, but images are not showing.
Showing
4 changed files
with
12 additions
and
7 deletions
Show diff stats
BUGS.md
1 | 1 | ||
2 | # BUGS | 2 | # BUGS |
3 | 3 | ||
4 | +- a revisao do teste não mostra as imagens. | ||
4 | - se aluno tem teste activo e é allowed uma segunda vez, deve manter o mesmo teste. adicionar opcao para eliminar um teste em curso. | 5 | - se aluno tem teste activo e é allowed uma segunda vez, deve manter o mesmo teste. adicionar opcao para eliminar um teste em curso. |
5 | - melhorar o botao de autorizar (desliga-se), usar antes um botao? | 6 | - melhorar o botao de autorizar (desliga-se), usar antes um botao? |
6 | e.g. retornar None quando nao ha alteracoes relativamente à última vez. | 7 | e.g. retornar None quando nao ha alteracoes relativamente à última vez. |
@@ -8,7 +9,6 @@ ou usar push (websockets?) | @@ -8,7 +9,6 @@ ou usar push (websockets?) | ||
8 | - pymips: nao pode executar syscalls do spim. | 9 | - pymips: nao pode executar syscalls do spim. |
9 | - perguntas checkbox [right,wrong] com pelo menos uma opção correcta. | 10 | - perguntas checkbox [right,wrong] com pelo menos uma opção correcta. |
10 | - questions.py textarea has a abspath which does not make sense! why is it there? not working for perguntations, but seems to work for aprendizations | 11 | - questions.py textarea has a abspath which does not make sense! why is it there? not working for perguntations, but seems to work for aprendizations |
11 | -- servir imagens das perguntas não funciona. Necessario passar a ref da pergunta no link para poder ajustar o path no FileHandler. Tem o problema do teste em JSON não conter a imagem. | ||
12 | - o eventloop está a bloquear. correção do teste é blocking. usar threadpoolexecutor? | 12 | - o eventloop está a bloquear. correção do teste é blocking. usar threadpoolexecutor? |
13 | - submissao faz um post ajax. | 13 | - submissao faz um post ajax. |
14 | - eventos unfocus? | 14 | - eventos unfocus? |
@@ -61,6 +61,8 @@ ou usar push (websockets?) | @@ -61,6 +61,8 @@ ou usar push (websockets?) | ||
61 | 61 | ||
62 | # FIXED | 62 | # FIXED |
63 | 63 | ||
64 | +- review nao esta a funcionar | ||
65 | +- servir imagens das perguntas não funciona. Necessario passar a ref da pergunta no link para poder ajustar o path no FileHandler. | ||
64 | - a primeira coluna da tabela admin deveria estar sempre ordenada. | 66 | - a primeira coluna da tabela admin deveria estar sempre ordenada. |
65 | - abortar depois de testar todas as perguntas, caso haja algum erro. | 67 | - abortar depois de testar todas as perguntas, caso haja algum erro. |
66 | - imagens jpg/png nas perguntas. | 68 | - imagens jpg/png nas perguntas. |
serve.py
@@ -235,6 +235,7 @@ class ReviewHandler(BaseHandler): | @@ -235,6 +235,7 @@ class ReviewHandler(BaseHandler): | ||
235 | raise tornado.web.HTTPError(404) | 235 | raise tornado.web.HTTPError(404) |
236 | 236 | ||
237 | test_id = self.get_query_argument('test_id', None) | 237 | test_id = self.get_query_argument('test_id', None) |
238 | + logging.info(f'Review test {test_id}.') | ||
238 | try: | 239 | try: |
239 | fname = self.testapp.get_json_filename_of_test(test_id) | 240 | fname = self.testapp.get_json_filename_of_test(test_id) |
240 | except: | 241 | except: |
templates/review.html
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | <script defer type="text/x-mathjax-config"> | 10 | <script defer type="text/x-mathjax-config"> |
11 | MathJax.Hub.Config({ | 11 | MathJax.Hub.Config({ |
12 | tex2jax: { | 12 | tex2jax: { |
13 | - inlineMath: [["$$$","$$$"], ["$","$"], ["\(","\)"]] | 13 | + inlineMath: [["$$$","$$$"], ["\(","\)"]] |
14 | } | 14 | } |
15 | }); | 15 | }); |
16 | </script> | 16 | </script> |
@@ -29,6 +29,8 @@ | @@ -29,6 +29,8 @@ | ||
29 | </head> | 29 | </head> |
30 | <!-- ===================================================================== --> | 30 | <!-- ===================================================================== --> |
31 | <body> | 31 | <body> |
32 | +<!-- ===================================================================== --> | ||
33 | + | ||
32 | <nav class="navbar navbar-expand-sm fixed-top navbar-dark bg-danger"> | 34 | <nav class="navbar navbar-expand-sm fixed-top navbar-dark bg-danger"> |
33 | <a class="navbar-brand" href="#"> | 35 | <a class="navbar-brand" href="#"> |
34 | <img src="/static/logo_horizontal.png" height="30" alt=""> | 36 | <img src="/static/logo_horizontal.png" height="30" alt=""> |
@@ -103,9 +105,10 @@ | @@ -103,9 +105,10 @@ | ||
103 | </h3> | 105 | </h3> |
104 | </div> <!-- jumbotron --> | 106 | </div> <!-- jumbotron --> |
105 | 107 | ||
106 | - {% for i, q in enumerate(t['questions']) %} | ||
107 | - {% module Template(templ[q['type']], i=i, q=q, md=md, t=t) %} | ||
108 | - {% end %} | 108 | + {% for i, q in enumerate(t['questions']) %} |
109 | + {% module Template(templ[q['type']], i=i, q=q, md=md(q['ref']), t=t) %} | ||
110 | + {% end %} | ||
111 | + | ||
109 | </div> <!-- container --> | 112 | </div> <!-- container --> |
110 | </body> | 113 | </body> |
111 | </html> | 114 | </html> |
templates/test.html
@@ -36,6 +36,7 @@ | @@ -36,6 +36,7 @@ | ||
36 | </head> | 36 | </head> |
37 | <!-- ===================================================================== --> | 37 | <!-- ===================================================================== --> |
38 | <body> | 38 | <body> |
39 | +<!-- ===================================================================== --> | ||
39 | 40 | ||
40 | <nav class="navbar navbar-expand-sm fixed-top navbar-dark bg-dark"> | 41 | <nav class="navbar navbar-expand-sm fixed-top navbar-dark bg-dark"> |
41 | <a class="navbar-brand" href="#"> | 42 | <a class="navbar-brand" href="#"> |
@@ -70,8 +71,6 @@ | @@ -70,8 +71,6 @@ | ||
70 | </div> | 71 | </div> |
71 | </nav> | 72 | </nav> |
72 | 73 | ||
73 | - | ||
74 | - | ||
75 | <!-- ===================================================================== --> | 74 | <!-- ===================================================================== --> |
76 | <div class="container"> | 75 | <div class="container"> |
77 | 76 |