From a967bc7822c563fc15e18c5e698958d23ac48aac Mon Sep 17 00:00:00 2001 From: Miguel Barão Date: Tue, 5 Dec 2017 12:56:21 +0000 Subject: [PATCH] - fixed bug where comments were always visible - fixed progressbar (was invisible) - improved bottom margin --- BUGS.md | 1 + factory.py | 2 +- templates/question.html | 2 -- templates/topic.html | 8 ++++---- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/BUGS.md b/BUGS.md index 82e3df0..8bee218 100644 --- a/BUGS.md +++ b/BUGS.md @@ -30,6 +30,7 @@ TODO: FIXED: +- Está a mostrar a solução em 'comments'!!! - database: answers não tem referencia para o topico, so para question_ref - melhorar markdown das tabelas. - gravar evolucao na bd no final de cada topico. diff --git a/factory.py b/factory.py index fe64ce0..2ea3ba2 100644 --- a/factory.py +++ b/factory.py @@ -76,7 +76,7 @@ class QFactory(object): # which will print a valid question in yaml format to stdout. This # output is then yaml parsed into a dictionary `q`. if q['type'] == 'generator': - logger.debug(f' \_ Running script "{q["script"]}"...') + logger.debug(f' \_ Running "{q["script"]}".') q.setdefault('arg', '') # optional arguments will be sent to stdin script = path.join(q['path'], q['script']) out = run_script(script=script, stdin=q['arg']) diff --git a/templates/question.html b/templates/question.html index 0f8ed52..ede6b41 100644 --- a/templates/question.html +++ b/templates/question.html @@ -7,5 +7,3 @@ {% block answer %}{% end %} - -{{ md(question.get('comments', '')) }} \ No newline at end of file diff --git a/templates/topic.html b/templates/topic.html index cb64345..4d201de 100644 --- a/templates/topic.html +++ b/templates/topic.html @@ -30,13 +30,13 @@