fix: timeout error for legacy page (#33965)
This commit is contained in:
@@ -56,9 +56,6 @@ class VideoModelSerializer(serializers.Serializer):
|
||||
transcripts = serializers.ListField(
|
||||
child=serializers.CharField()
|
||||
)
|
||||
usage_locations = serializers.ListField(
|
||||
child=serializers.DictField()
|
||||
)
|
||||
|
||||
|
||||
class VideoActiveTranscriptPreferencesSerializer(serializers.Serializer):
|
||||
@@ -99,7 +96,6 @@ class CourseVideosSerializer(serializers.Serializer):
|
||||
child=serializers.CharField()
|
||||
)
|
||||
)
|
||||
# transcript_available_languages = serializers.BooleanField(required=False, allow_null=True)
|
||||
video_transcript_settings = VideoTranscriptSettingsSerializer()
|
||||
pagination_context = serializers.DictField(
|
||||
child=serializers.CharField(),
|
||||
|
||||
@@ -685,7 +685,6 @@ def _get_index_videos(course, pagination_conf=None):
|
||||
Get data for predefined video attributes.
|
||||
"""
|
||||
values = {}
|
||||
values["usage_locations"] = get_video_usage_path(course.id, video["edx_video_id"])['usage_locations']
|
||||
for attr in attrs:
|
||||
if attr == 'courses':
|
||||
current_course = [c for c in video['courses'] if course_id in c]
|
||||
|
||||
@@ -374,7 +374,6 @@ class VideosHandlerTestCase(
|
||||
'transcription_status',
|
||||
'transcript_urls',
|
||||
'error_description',
|
||||
'usage_locations'
|
||||
}
|
||||
)
|
||||
dateutil.parser.parse(response_video['created'])
|
||||
@@ -391,7 +390,7 @@ class VideosHandlerTestCase(
|
||||
'edx_video_id', 'client_video_id', 'created', 'duration',
|
||||
'status', 'course_video_image_url', 'file_size', 'download_link',
|
||||
'transcripts', 'transcription_status', 'transcript_urls',
|
||||
'error_description', 'usage_locations'
|
||||
'error_description'
|
||||
],
|
||||
[
|
||||
{
|
||||
@@ -409,7 +408,7 @@ class VideosHandlerTestCase(
|
||||
'edx_video_id', 'client_video_id', 'created', 'duration',
|
||||
'status', 'course_video_image_url', 'file_size', 'download_link',
|
||||
'transcripts', 'transcription_status', 'transcript_urls',
|
||||
'error_description', 'usage_locations'
|
||||
'error_description'
|
||||
],
|
||||
[
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user