diff --git a/judge/views/submission.py b/judge/views/submission.py index dbf41d4..d7ebfc0 100644 --- a/judge/views/submission.py +++ b/judge/views/submission.py @@ -170,7 +170,6 @@ def get_problem_data(submission): problem_data = {case.order: get_input_answer(case, archive) for case in testcases} - return problem_data @@ -184,7 +183,6 @@ class SubmissionStatus(SubmissionDetailBase): context['batches'] = group_test_cases(submission.test_cases.all()) context['time_limit'] = submission.problem.time_limit context['cases_data'] = get_problem_data(submission) - try: lang_limit = submission.problem.language_limits.get( language=submission.language) diff --git a/templates/submission/status-testcases.html b/templates/submission/status-testcases.html index b77b08d..b9d9520 100644 --- a/templates/submission/status-testcases.html +++ b/templates/submission/status-testcases.html @@ -36,7 +36,7 @@
- {%- if (prefix_length is none or prefix_length > 0) -%} + {%- if ((prefix_length is none or prefix_length > 0) or (request.user.is_superuser)) -%} {%- endif -%} {%- if batch.id -%} @@ -72,11 +72,11 @@ {% endif %} |