Commit f2567db305dc68e8a507abc116d38bd22e93299c

Authored by Miguel Barão
1 parent ae1ca233
Exists in dev

remove synchronous question generator (unused)

Showing 1 changed file with 0 additions and 6 deletions   Show diff stats
aprendizations/questions.py
... ... @@ -5,7 +5,6 @@ Description: Classes the implement several types of questions.
5 5  
6 6  
7 7 # python standard library
8   -import asyncio
9 8 from datetime import datetime
10 9 import logging
11 10 from os import path
... ... @@ -692,8 +691,3 @@ class QFactory():
692 691 question = question_from(qdict) # returns a Question instance
693 692 question.gen()
694 693 return question
695   -
696   - # ------------------------------------------------------------------------
697   - def generate(self) -> Question:
698   - '''generate question (synchronous version)'''
699   - return asyncio.get_event_loop().run_until_complete(self.gen_async())
... ...