Commit 0010291545369c39ece55fee664ba90ceba1b51f
1 parent
f9cca5bb
Exists in
master
and in
1 other branch
- removed a lost print
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
serve.py
... | ... | @@ -10,6 +10,7 @@ import argparse |
10 | 10 | import mimetypes |
11 | 11 | import signal |
12 | 12 | import asyncio |
13 | +import functools | |
13 | 14 | |
14 | 15 | # user installed libraries |
15 | 16 | import tornado.ioloop |
... | ... | @@ -249,8 +250,6 @@ class QuestionHandler(BaseHandler): |
249 | 250 | # check answer in another thread (nonblocking) |
250 | 251 | loop = asyncio.get_event_loop() |
251 | 252 | grade = await loop.run_in_executor(None, self.learn.check_answer, user, answer) |
252 | - | |
253 | - print('grade = ', grade) | |
254 | 253 | question = self.learn.get_student_question(user) |
255 | 254 | |
256 | 255 | if grade <= 0.999: # wrong answer |
... | ... | @@ -349,7 +348,6 @@ def main(): |
349 | 348 | logging.info('Webserver running... (Ctrl-C to stop)') |
350 | 349 | signal.signal(signal.SIGINT, signal_handler) |
351 | 350 | |
352 | - | |
353 | 351 | try: |
354 | 352 | tornado.ioloop.IOLoop.current().start() # running... |
355 | 353 | except Exception: | ... | ... |