Commit c55940afcf1a950e310a1f7b0d06868f740ed2c0
1 parent
8402f10b
Exists in
master
and in
1 other branch
- minor change in number of threads in ThreadPoolExecutor
Showing
3 changed files
with
6 additions
and
3 deletions
Show diff stats
BUGS.md
| 1 | 1 | |
| 2 | 2 | # BUGS |
| 3 | 3 | |
| 4 | -- on start topic, logs show questionhandler.get() twice. | |
| 5 | -- change password modal nao aparece no ipad (safari e firefox) | |
| 6 | 4 | - tabelas nas perguntas radio/checkbox não ocupam todo o espaço como em question. |
| 7 | 5 | |
| 8 | 6 | # TODO |
| 9 | 7 | |
| 8 | +- mostrar icon "loading..." enquanto está a corrigir uma pergunta. | |
| 10 | 9 | - Criar outra estrutura organizada em capítulos (conjuntos de tópicos). Permitir capítulos de capítulos, etc. talvez usar grafos de grafos... |
| 11 | 10 | - each topic only loads a sample of K questions (max) in random order. |
| 12 | 11 | - session management. close after inactive time. |
| ... | ... | @@ -26,6 +25,7 @@ |
| 26 | 25 | |
| 27 | 26 | # FIXED |
| 28 | 27 | |
| 28 | +- change password modal nao aparece no ipad (safari e firefox) | |
| 29 | 29 | - detect questions in questions.yaml without ref -> error ou generate default. |
| 30 | 30 | - generators e correct scripts que durem muito tempo bloqueiam o eventloop do tornado. |
| 31 | 31 | - servir imagens/ficheiros. | ... | ... |
README.md
| ... | ... | @@ -97,6 +97,9 @@ Certificates are saved under `/usr/local/etc/letsencrypt/live/bit.xdi.uevora.pt/ |
| 97 | 97 | |
| 98 | 98 | Copy them to `aprendizations/certs` with names `cert.pem` and `key.pem`. And change permissions to be readble (FIXME how to do it securily?) |
| 99 | 99 | |
| 100 | +Renews can be done running `certbot renew` (untested!). | |
| 101 | + | |
| 102 | + | |
| 100 | 103 | ### Testing |
| 101 | 104 | |
| 102 | 105 | Run a demonstration: | ... | ... |
serve.py
| ... | ... | @@ -185,7 +185,7 @@ class FileHandler(BaseHandler): |
| 185 | 185 | # respond to AJAX to get a JSON question |
| 186 | 186 | # ---------------------------------------------------------------------------- |
| 187 | 187 | class QuestionHandler(BaseHandler): |
| 188 | - executor = ThreadPoolExecutor(max_workers=2) | |
| 188 | + executor = ThreadPoolExecutor() # max_workers=5*n_cpus? | |
| 189 | 189 | |
| 190 | 190 | templates = { |
| 191 | 191 | 'checkbox': 'question-checkbox.html', | ... | ... |