This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user