From ff25687349139a4811bfe3e9053d1516557f1b2e Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 11 Sep 2015 10:59:06 +0200 Subject: s/hint_defs/hint_type/g --- server/prolog_session.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/prolog_session.py b/server/prolog_session.py index 3e48cbc..c06c6d0 100644 --- a/server/prolog_session.py +++ b/server/prolog_session.py @@ -133,9 +133,9 @@ class PrologSession(object): with self._access_lock: for hint in hints: for mod in [language_mod, problem_mod]: - if hasattr(mod, 'hint_defs') and hint['id'] in mod.hint_defs: - hint_def = mod.hint_defs[hint['id']] - hint_def.instantiate(hint, self._sent_hints) + if hasattr(mod, 'hint_type') and hint['id'] in mod.hint_type: + hint_type = mod.hint_type[hint['id']] + hint_type.instantiate(hint, self._sent_hints) self._sent_hints.extend(hints) def run_for_user(self, user_id, problem_id, program, query): -- cgit v1.2.1