diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-12-23 16:46:46 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-12-23 16:46:46 +0100 |
commit | 306a6b808c4b0434985946abe0d140af88441c55 (patch) | |
tree | 6dd2ea7c4143a1d8a30eb64d65bac35b32f47016 /server/problems.py | |
parent | 43adbc89e377c5f57fa7e2944c96dc605a2de96f (diff) |
Prolog: pass aux. code to problem's test function
This allows us to simplify individual problem test functions.
Diffstat (limited to 'server/problems.py')
-rw-r--r-- | server/problems.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/problems.py b/server/problems.py index 40c8eab..10dec0d 100644 --- a/server/problems.py +++ b/server/problems.py @@ -76,16 +76,16 @@ def get_facts(language, problem_module): try: facts = problem_module.facts except AttributeError as e: - return None + return '' if facts is None: - return None + return '' module = load_facts(language, facts) if module: try: return module.facts except AttributeError as e: - return None - return None + return '' + return '' def solutions_for_problems(language, tuples): if not tuples: |