diff options
-rw-r--r-- | server/prolog_session.py | 2 | ||||
-rw-r--r-- | server/python_session.py | 2 | ||||
-rw-r--r-- | server/robot_session.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/server/prolog_session.py b/server/prolog_session.py index 5dd848b..ac18400 100644 --- a/server/prolog_session.py +++ b/server/prolog_session.py @@ -124,7 +124,7 @@ class PrologSession(server.LanguageSession): # check if the program is correct n_correct, n_all, msgs = problem_module.test(program, aux_code=aux_code) if n_correct == n_all: - session.update_solution(problem_id, done=True) + session.update_solution(problem_id, solution=program, done=True) else: hints = [] if not hints and hasattr(language_module, 'check_syntax'): diff --git a/server/python_session.py b/server/python_session.py index 9ceda9b..52a54de 100644 --- a/server/python_session.py +++ b/server/python_session.py @@ -110,7 +110,7 @@ class PythonSession(server.LanguageSession): passed, msgs = problem_module.test(self.run, program) if passed: session = server.user_session.get_session_by_id(sid) - session.update_solution(problem_id, done=True) + session.update_solution(problem_id, solution=program, done=True) else: hints = [] if not hints and hasattr(language_module, 'hint'): diff --git a/server/robot_session.py b/server/robot_session.py index 410016b..649159a 100644 --- a/server/robot_session.py +++ b/server/robot_session.py @@ -64,7 +64,7 @@ class RobotSession(server.LanguageSession): passed, hints = problem_module.test(program) if passed: session = server.user_session.get_session_by_id(sid) - session.update_solution(problem_id, done=True) + session.update_solution(problem_id, solution=program, done=True) except AttributeError as ex: hints = [{'id': 'system_error', 'args': {'message': 'test function does not exist'}}] |