Skip to content

Commit

Permalink
Fix up generator TL; #563
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyene committed Oct 25, 2019
1 parent a1124ba commit 7aa325c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions dmoj/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import traceback

from dmoj.error import InternalError
from dmoj.judgeenv import env


class GeneratorManager:
Expand Down Expand Up @@ -39,7 +38,6 @@ def find_runtime(languages):
clazz = clazz.Executor

if issubclass(clazz, CompiledExecutor):
compiler_time_limit = compiler_time_limit or env.generator_compiler_time_limit
clazz = type('Executor', (clazz,), {'compiler_time_limit': compiler_time_limit})

# Optimize the common case.
Expand Down
2 changes: 1 addition & 1 deletion dmoj/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _run_generator(self, gen, args=None):
# resource limits on how to run the generator
time_limit = env.generator_time_limit
memory_limit = env.generator_memory_limit
compiler_time_limit = env.compiler_time_limit
compiler_time_limit = env.generator_compiler_time_limit
lang = None # Default to C/C++

base = get_problem_root(self.problem.id)
Expand Down

0 comments on commit 7aa325c

Please sign in to comment.