From 41837db827cfa188651abbc94cb36f028d231fc3 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 30 Jan 2023 14:09:03 -0600 Subject: [PATCH] Fix bug --- judge/views/submission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/views/submission.py b/judge/views/submission.py index e8e6489..152d6a9 100644 --- a/judge/views/submission.py +++ b/judge/views/submission.py @@ -266,7 +266,7 @@ class SubmissionStatus(SubmissionDetailBase): can_see_testcases = self.access_testcases_in_contest() if contest is not None: - prefix_length = contest.problem.output_prefix_override + prefix_length = contest.problem.output_prefix_override or 0 if contest is None or prefix_length > 0 or can_see_testcases: context["cases_data"] = get_cases_data(submission)