diff --git a/judge/views/submission.py b/judge/views/submission.py index 827fe04..1d69daa 100644 --- a/judge/views/submission.py +++ b/judge/views/submission.py @@ -887,9 +887,7 @@ class UserContestSubmissionsAjax(UserContestSubmissions): ): best_subtasks[subtask] = { "submission": None, - "contest_time": nice_repr( - self.contest_time(submission), "noday" - ), + "contest_time": None, "points": "???", "total": total_subtask_points, } diff --git a/templates/submission/user-ajax.html b/templates/submission/user-ajax.html index ff97a5d..70bbcae 100644 --- a/templates/submission/user-ajax.html +++ b/templates/submission/user-ajax.html @@ -13,9 +13,11 @@ {{ cur_subtask.points }} / {{ cur_subtask.total }} + {% if cur_subtask.contest_time%} ({{ cur_subtask.contest_time }}) - + + {% endif %} {% if cur_subtask.submission %} {% set can_view = submission_layout(cur_subtask.submission, profile_id, request.user, editable_problem_ids, completed_problem_ids) %} {% if can_view %}