From 35d96588f9ef6cedcc36b4548f58fdf429b7c8ea Mon Sep 17 00:00:00 2001 From: jeremygan2021 Date: Tue, 17 Mar 2026 21:15:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=90=E5=AD=97=E7=A8=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/competition/judge_views.py | 4 ++ .../templates/judge/dashboard.html | 37 ++++++++++++++++++- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/backend/competition/judge_views.py b/backend/competition/judge_views.py index e1439d3..0dd8d17 100644 --- a/backend/competition/judge_views.py +++ b/backend/competition/judge_views.py @@ -317,6 +317,9 @@ def project_detail_api(request, project_id): 'auto_chapters_data': latest_task.auto_chapters_data } + latest_task_any = TranscriptionTask.objects.filter(project=project).order_by('-created_at').first() + audio_url = latest_task_any.file_url if latest_task_any else None + data = { 'id': project.id, 'title': project.title, @@ -326,6 +329,7 @@ def project_detail_api(request, project_id): 'history_comments': history, 'current_comment': current_comment, 'ai_result': ai_data, + 'audio_url': audio_url, 'can_grade': role == 'judge' or (role == 'contestant' and project.contestant.user != user) # Contestant can grade others if allowed } diff --git a/backend/competition/templates/judge/dashboard.html b/backend/competition/templates/judge/dashboard.html index 40093b5..a945c29 100644 --- a/backend/competition/templates/judge/dashboard.html +++ b/backend/competition/templates/judge/dashboard.html @@ -89,6 +89,13 @@
+
+

项目录音

+
+ +
+
+