逐字稿
All checks were successful
Deploy to Server / deploy (push) Successful in 19s

This commit is contained in:
jeremygan2021
2026-03-17 21:15:48 +08:00
parent afab4933b4
commit 35d96588f9
2 changed files with 40 additions and 1 deletions

View File

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