Commit ae59481eb3805309cd8c5a75878cbc6acdc48719
1 parent
e03f8a26
Exists in
master
and in
1 other branch
fix regression of last commit
Showing
4 changed files
with
6 additions
and
4 deletions
Show diff stats
aprendizations/questions.py
| @@ -327,8 +327,8 @@ class QuestionTextArea(Question): | @@ -327,8 +327,8 @@ class QuestionTextArea(Question): | ||
| 327 | 327 | ||
| 328 | self.set_defaults(QDict({ | 328 | self.set_defaults(QDict({ |
| 329 | 'text': '', | 329 | 'text': '', |
| 330 | - # 'lines': 8, | ||
| 331 | - 'timeout': 5, # seconds | 330 | + 'lines': 8, # FIXME unused? |
| 331 | + 'timeout': 5, # seconds | ||
| 332 | 'correct': '', # trying to execute this will fail => grade 0.0 | 332 | 'correct': '', # trying to execute this will fail => grade 0.0 |
| 333 | 'args': [] | 333 | 'args': [] |
| 334 | })) | 334 | })) |
aprendizations/serve.py
| @@ -13,6 +13,7 @@ import ssl | @@ -13,6 +13,7 @@ import ssl | ||
| 13 | import sys | 13 | import sys |
| 14 | import uuid | 14 | import uuid |
| 15 | 15 | ||
| 16 | + | ||
| 16 | # third party libraries | 17 | # third party libraries |
| 17 | import tornado.ioloop | 18 | import tornado.ioloop |
| 18 | import tornado.httpserver | 19 | import tornado.httpserver |
| @@ -20,9 +21,9 @@ import tornado.web | @@ -20,9 +21,9 @@ import tornado.web | ||
| 20 | from tornado.escape import to_unicode | 21 | from tornado.escape import to_unicode |
| 21 | 22 | ||
| 22 | # this project | 23 | # this project |
| 23 | -from . import APP_NAME | ||
| 24 | from .learnapp import LearnApp | 24 | from .learnapp import LearnApp |
| 25 | from .tools import load_yaml, md_to_html | 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,6 +14,7 @@ from pygments.lexers import get_lexer_by_name | ||
| 14 | from pygments.formatters import HtmlFormatter | 14 | from pygments.formatters import HtmlFormatter |
| 15 | import yaml | 15 | import yaml |
| 16 | 16 | ||
| 17 | + | ||
| 17 | # setup logger for this module | 18 | # setup logger for this module |
| 18 | logger = logging.getLogger(__name__) | 19 | logger = logging.getLogger(__name__) |
| 19 | 20 |
demo/solar_system/correct-first_3_planets.py