diff --git a/aprendizations/learnapp.py b/aprendizations/learnapp.py index ed57c84..a72fcd4 100644 --- a/aprendizations/learnapp.py +++ b/aprendizations/learnapp.py @@ -352,7 +352,7 @@ class LearnApp(object): topics: Dict[str, Dict] = config.get('topics', {}) g.add_nodes_from(topics.keys()) for tref, attr in topics.items(): - logger.debug(f' + {tref}...') + logger.debug(f' + {tref}') for d in attr.get('deps', []): if d not in g.nodes(): logger.error(f'Topic "{tref}" depends on "{d}" but it ' diff --git a/aprendizations/questions.py b/aprendizations/questions.py index d66c2c6..82bc440 100644 --- a/aprendizations/questions.py +++ b/aprendizations/questions.py @@ -254,15 +254,15 @@ class QuestionText(Question): # apply optional filters to the answer def transform(self, ans): for f in self['transform']: - if f == 'remove_space': + if f == 'remove_space': # removes all spaces ans = ans.replace(' ', '') - elif f == 'trim': + elif f == 'trim': # removes spaces around ans = ans.strip() - elif f == 'normalize_space': + elif f == 'normalize_space': # replaces multiple spaces by one ans = re.sub(r'\s+', ' ', ans.strip()) - elif f == 'lower': + elif f == 'lower': # convert to lowercase ans = ans.lower() - elif f == 'upper': + elif f == 'upper': # convert to uppercase ans = ans.upper() else: logger.warning(f'in "{self["ref"]}", unknown transform "{f}"') diff --git a/aprendizations/serve.py b/aprendizations/serve.py index 0784e9d..5ba1bc8 100644 --- a/aprendizations/serve.py +++ b/aprendizations/serve.py @@ -434,7 +434,7 @@ def run_webserver(app, except Exception: logger.critical('Failed to start web application.') raise - sys.exit(1) + # sys.exit(1) else: logger.info('Web application started (tornado.web.Application)') -- libgit2 0.21.2