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 @@
+