From c55940afcf1a950e310a1f7b0d06868f740ed2c0 Mon Sep 17 00:00:00 2001 From: Miguel Barão Date: Sun, 25 Feb 2018 18:52:45 +0000 Subject: [PATCH] - minor change in number of threads in ThreadPoolExecutor --- BUGS.md | 4 ++-- README.md | 3 +++ serve.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/BUGS.md b/BUGS.md index 16edc73..dc37040 100644 --- a/BUGS.md +++ b/BUGS.md @@ -1,12 +1,11 @@ # BUGS -- on start topic, logs show questionhandler.get() twice. -- change password modal nao aparece no ipad (safari e firefox) - tabelas nas perguntas radio/checkbox não ocupam todo o espaço como em question. # TODO +- mostrar icon "loading..." enquanto está a corrigir uma pergunta. - Criar outra estrutura organizada em capítulos (conjuntos de tópicos). Permitir capítulos de capítulos, etc. talvez usar grafos de grafos... - each topic only loads a sample of K questions (max) in random order. - session management. close after inactive time. @@ -26,6 +25,7 @@ # FIXED +- change password modal nao aparece no ipad (safari e firefox) - detect questions in questions.yaml without ref -> error ou generate default. - generators e correct scripts que durem muito tempo bloqueiam o eventloop do tornado. - servir imagens/ficheiros. diff --git a/README.md b/README.md index e01123c..6c8f6d3 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,9 @@ Certificates are saved under `/usr/local/etc/letsencrypt/live/bit.xdi.uevora.pt/ Copy them to `aprendizations/certs` with names `cert.pem` and `key.pem`. And change permissions to be readble (FIXME how to do it securily?) +Renews can be done running `certbot renew` (untested!). + + ### Testing Run a demonstration: diff --git a/serve.py b/serve.py index 8aae900..2b269f1 100755 --- a/serve.py +++ b/serve.py @@ -185,7 +185,7 @@ class FileHandler(BaseHandler): # respond to AJAX to get a JSON question # ---------------------------------------------------------------------------- class QuestionHandler(BaseHandler): - executor = ThreadPoolExecutor(max_workers=2) + executor = ThreadPoolExecutor() # max_workers=5*n_cpus? templates = { 'checkbox': 'question-checkbox.html', -- libgit2 0.21.2