Skip to content

Commit

Permalink
feat: remove transcript content from course-transcripts endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonHBodine committed Sep 13, 2024
1 parent b7a0479 commit d2648ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions edxval/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ def get_videos_for_course(course_id, sort_field=None, sort_dir=SortDirection.asc

def get_transcript_details_for_course(course_id):
"""
Gets all the transcript for a course and bundles up data.
Get all the transcripts for a course and return details.
Args:
course_id (String)
Expand All @@ -746,7 +746,6 @@ def get_transcript_details_for_course(course_id):
'edx_video_id': {
'lang_code': {
'provider': 'What the provider is',
'content': 'Content of the transcript',
'file_format': 'file format',
'url': 'location of the file',
'name': 'name of the file',
Expand All @@ -766,7 +765,6 @@ def get_transcript_details_for_course(course_id):
for video_transcript in video_transcripts:
transcript_data[video_transcript.language_code] = {
'provider': video_transcript.provider,
'content': video_transcript.transcript.file.read(),
'file_format': video_transcript.file_format,
'url': video_transcript.transcript.url,
'name': video_transcript.transcript.name,
Expand Down

0 comments on commit d2648ec

Please sign in to comment.