diff --git a/BUGS.md b/BUGS.md index 1bdc0e6..c488c80 100644 --- a/BUGS.md +++ b/BUGS.md @@ -2,6 +2,7 @@ # BUGS +- detectar se falta 'correct' nas perguntas. - check if script to generate questions exist before instantiation. - paths manipulation in strings is unix only ('/something'). use os.path to create paths. - fix ans directory. relative to what?? current dir? @@ -12,7 +13,7 @@ - SQLAlchemy em vez da classe database. - Criar botão para o docente fazer enable/disable do aluno explicitamente (exames presenciais). -- hash das passwords obtidas da concatenacao do numero de aluno com password (evita que passwords repetidas sejam detectadas). +- hash das passwords concatenadas com salt gerado aleatoriamente. necessario acrescentar salt de cada aluno. gerar salt com os.urandom(256) - permitir enviar varios testes, aluno escolhe qual o teste que quer fazer. - criar script json2md.py ou outra forma de gerar um teste ja realizado - Menu para professor com link para /results e /students diff --git a/config/server.conf b/config/server.conf index f782077..4b1257f 100644 --- a/config/server.conf +++ b/config/server.conf @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- [global] -;environment= 'production' +environment= 'production' ; number of threads running server.thread_pool= 10 @@ -23,8 +23,8 @@ server.socket_port = 8080 log.screen = False # add path to the log files here. empty strings disable logging -log.error_file = '' -log.access_file = '' +log.error_file = '/Users/mjsb/Library/Logs/Perguntations/errors.log' +log.access_file = '/Users/mjsb/Library/Logs/Perguntations/access.log' # DO NOT DISABLE SESSIONS! tools.sessions.on = True @@ -36,7 +36,7 @@ tools.sessions.storage_path = 'sessions' tools.auth.on = True [/] -; Default root is the server directory, but can be changed here +; Default root is under the server directory, but can be changed here ; tools.staticdir.root = os.path.normpath(os.path.abspath(os.path.curdir)) tools.staticdir.dir = 'static' tools.staticdir.on = True diff --git a/templates/results.html b/templates/results.html index 76e441f..c10cd92 100644 --- a/templates/results.html +++ b/templates/results.html @@ -127,11 +127,11 @@ % if dt.days > 0: ${dt.days}d % elif dt.seconds >= 3600: - (${dt.seconds // 3600} horas + ${dt.seconds // 3600}h % elif dt.seconds >= 60: - (${dt.seconds // 60} minutos + ${dt.seconds // 60}m % else: - (${dt.seconds} segundos + ${dt.seconds}s % endif -- libgit2 0.21.2