diff --git a/bin/config.py b/bin/config.py index 9a99051b..003b4c99 100644 --- a/bin/config.py +++ b/bin/config.py @@ -84,3 +84,4 @@ def timeout(): # Set to true when running as a test. RUNNING_TEST = False +TEST_TLE_SUBMISSIONS = False diff --git a/bin/problem.py b/bin/problem.py index d5c35bb5..813c90d5 100644 --- a/bin/problem.py +++ b/bin/problem.py @@ -248,6 +248,9 @@ def add(s): add(s) else: for verdict in ['ACCEPTED'] if accepted_only else config.VERDICTS: + if verdict == 'TIME_LIMIT_EXCEEDED' and not config.TEST_TLE_SUBMISSIONS: + continue + paths += glob(problem.path / 'submissions' / verdict.lower(), '*') if len(paths) == 0: