diff options
Diffstat (limited to 'server/prolog_session.py')
-rw-r--r-- | server/prolog_session.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/prolog_session.py b/server/prolog_session.py index dfb7c28..cd54e20 100644 --- a/server/prolog_session.py +++ b/server/prolog_session.py @@ -126,6 +126,8 @@ class PrologSession(server.LanguageSession): if pp != (p.group, p.identifier)] try: passed, hints = problem_module.test(program, solved_problems) + if passed: + session.update_solution(problem_id, done=True) except AttributeError as ex: hints = [{'id': 'system_error', 'args': {'message': 'test function does not exist'}}] |