Commit ae59481eb3805309cd8c5a75878cbc6acdc48719

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

fix regression of last commit

aprendizations/questions.py
... ... @@ -327,8 +327,8 @@ class QuestionTextArea(Question):
327 327  
328 328 self.set_defaults(QDict({
329 329 'text': '',
330   - # 'lines': 8,
331   - 'timeout': 5, # seconds
  330 + 'lines': 8, # FIXME unused?
  331 + 'timeout': 5, # seconds
332 332 'correct': '', # trying to execute this will fail => grade 0.0
333 333 'args': []
334 334 }))
... ...
aprendizations/serve.py
... ... @@ -13,6 +13,7 @@ import ssl
13 13 import sys
14 14 import uuid
15 15  
  16 +
16 17 # third party libraries
17 18 import tornado.ioloop
18 19 import tornado.httpserver
... ... @@ -20,9 +21,9 @@ import tornado.web
20 21 from tornado.escape import to_unicode
21 22  
22 23 # this project
23   -from . import APP_NAME
24 24 from .learnapp import LearnApp
25 25 from .tools import load_yaml, md_to_html
  26 +from . import APP_NAME
26 27  
27 28  
28 29 # ----------------------------------------------------------------------------
... ...
aprendizations/tools.py
... ... @@ -14,6 +14,7 @@ from pygments.lexers import get_lexer_by_name
14 14 from pygments.formatters import HtmlFormatter
15 15 import yaml
16 16  
  17 +
17 18 # setup logger for this module
18 19 logger = logging.getLogger(__name__)
19 20  
... ...
demo/solar_system/correct-first_3_planets.py
... ... @@ -23,6 +23,6 @@ out = f'''---
23 23 grade: {grade}
24 24 comments: {comments}'''
25 25  
26   -time.sleep(5)
  26 +time.sleep(1)
27 27  
28 28 print(out)
... ...