Commit 301864f7de5f892f2c6fbacc7724849a984a3dd1
1 parent
9b8887c5
Exists in
master
and in
1 other branch
- fixed elapsed time strings in the /results page
Showing
3 changed files
with
9 additions
and
8 deletions
Show diff stats
BUGS.md
@@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
2 | 2 | ||
3 | # BUGS | 3 | # BUGS |
4 | 4 | ||
5 | +- detectar se falta 'correct' nas perguntas. | ||
5 | - check if script to generate questions exist before instantiation. | 6 | - check if script to generate questions exist before instantiation. |
6 | - paths manipulation in strings is unix only ('/something'). use os.path to create paths. | 7 | - paths manipulation in strings is unix only ('/something'). use os.path to create paths. |
7 | - fix ans directory. relative to what?? current dir? | 8 | - fix ans directory. relative to what?? current dir? |
@@ -12,7 +13,7 @@ | @@ -12,7 +13,7 @@ | ||
12 | 13 | ||
13 | - SQLAlchemy em vez da classe database. | 14 | - SQLAlchemy em vez da classe database. |
14 | - Criar botão para o docente fazer enable/disable do aluno explicitamente (exames presenciais). | 15 | - Criar botão para o docente fazer enable/disable do aluno explicitamente (exames presenciais). |
15 | -- hash das passwords obtidas da concatenacao do numero de aluno com password (evita que passwords repetidas sejam detectadas). | 16 | +- hash das passwords concatenadas com salt gerado aleatoriamente. necessario acrescentar salt de cada aluno. gerar salt com os.urandom(256) |
16 | - permitir enviar varios testes, aluno escolhe qual o teste que quer fazer. | 17 | - permitir enviar varios testes, aluno escolhe qual o teste que quer fazer. |
17 | - criar script json2md.py ou outra forma de gerar um teste ja realizado | 18 | - criar script json2md.py ou outra forma de gerar um teste ja realizado |
18 | - Menu para professor com link para /results e /students | 19 | - Menu para professor com link para /results e /students |
config/server.conf
1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
2 | 2 | ||
3 | [global] | 3 | [global] |
4 | -;environment= 'production' | 4 | +environment= 'production' |
5 | 5 | ||
6 | ; number of threads running | 6 | ; number of threads running |
7 | server.thread_pool= 10 | 7 | server.thread_pool= 10 |
@@ -23,8 +23,8 @@ server.socket_port = 8080 | @@ -23,8 +23,8 @@ server.socket_port = 8080 | ||
23 | log.screen = False | 23 | log.screen = False |
24 | 24 | ||
25 | # add path to the log files here. empty strings disable logging | 25 | # add path to the log files here. empty strings disable logging |
26 | -log.error_file = '' | ||
27 | -log.access_file = '' | 26 | +log.error_file = '/Users/mjsb/Library/Logs/Perguntations/errors.log' |
27 | +log.access_file = '/Users/mjsb/Library/Logs/Perguntations/access.log' | ||
28 | 28 | ||
29 | # DO NOT DISABLE SESSIONS! | 29 | # DO NOT DISABLE SESSIONS! |
30 | tools.sessions.on = True | 30 | tools.sessions.on = True |
@@ -36,7 +36,7 @@ tools.sessions.storage_path = 'sessions' | @@ -36,7 +36,7 @@ tools.sessions.storage_path = 'sessions' | ||
36 | tools.auth.on = True | 36 | tools.auth.on = True |
37 | 37 | ||
38 | [/] | 38 | [/] |
39 | -; Default root is the server directory, but can be changed here | 39 | +; Default root is under the server directory, but can be changed here |
40 | ; tools.staticdir.root = os.path.normpath(os.path.abspath(os.path.curdir)) | 40 | ; tools.staticdir.root = os.path.normpath(os.path.abspath(os.path.curdir)) |
41 | tools.staticdir.dir = 'static' | 41 | tools.staticdir.dir = 'static' |
42 | tools.staticdir.on = True | 42 | tools.staticdir.on = True |
templates/results.html
@@ -127,11 +127,11 @@ | @@ -127,11 +127,11 @@ | ||
127 | % if dt.days > 0: | 127 | % if dt.days > 0: |
128 | ${dt.days}d | 128 | ${dt.days}d |
129 | % elif dt.seconds >= 3600: | 129 | % elif dt.seconds >= 3600: |
130 | - (${dt.seconds // 3600} horas | 130 | + ${dt.seconds // 3600}h |
131 | % elif dt.seconds >= 60: | 131 | % elif dt.seconds >= 60: |
132 | - (${dt.seconds // 60} minutos | 132 | + ${dt.seconds // 60}m |
133 | % else: | 133 | % else: |
134 | - (${dt.seconds} segundos | 134 | + ${dt.seconds}s |
135 | % endif | 135 | % endif |
136 | 136 | ||
137 | </small> | 137 | </small> |