Commit 301864f7de5f892f2c6fbacc7724849a984a3dd1

Authored by Miguel Barão
1 parent 9b8887c5
Exists in master and in 1 other branch dev

- fixed elapsed time strings in the /results page

BUGS.md
... ... @@ -2,6 +2,7 @@
2 2  
3 3 # BUGS
4 4  
  5 +- detectar se falta 'correct' nas perguntas.
5 6 - check if script to generate questions exist before instantiation.
6 7 - paths manipulation in strings is unix only ('/something'). use os.path to create paths.
7 8 - fix ans directory. relative to what?? current dir?
... ... @@ -12,7 +13,7 @@
12 13  
13 14 - SQLAlchemy em vez da classe database.
14 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 17 - permitir enviar varios testes, aluno escolhe qual o teste que quer fazer.
17 18 - criar script json2md.py ou outra forma de gerar um teste ja realizado
18 19 - Menu para professor com link para /results e /students
... ...
config/server.conf
1 1 # -*- coding: utf-8 -*-
2 2  
3 3 [global]
4   -;environment= 'production'
  4 +environment= 'production'
5 5  
6 6 ; number of threads running
7 7 server.thread_pool= 10
... ... @@ -23,8 +23,8 @@ server.socket_port = 8080
23 23 log.screen = False
24 24  
25 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 29 # DO NOT DISABLE SESSIONS!
30 30 tools.sessions.on = True
... ... @@ -36,7 +36,7 @@ tools.sessions.storage_path = 'sessions'
36 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 40 ; tools.staticdir.root = os.path.normpath(os.path.abspath(os.path.curdir))
41 41 tools.staticdir.dir = 'static'
42 42 tools.staticdir.on = True
... ...
templates/results.html
... ... @@ -127,11 +127,11 @@
127 127 % if dt.days > 0:
128 128 ${dt.days}d
129 129 % elif dt.seconds >= 3600:
130   - (${dt.seconds // 3600} horas
  130 + ${dt.seconds // 3600}h
131 131 % elif dt.seconds >= 60:
132   - (${dt.seconds // 60} minutos
  132 + ${dt.seconds // 60}m
133 133 % else:
134   - (${dt.seconds} segundos
  134 + ${dt.seconds}s
135 135 % endif
136 136  
137 137 </small>
... ...