Skip to content

Commit 8f82723

Browse files
committed
Skip sounds-write archived courses
1 parent e083014 commit 8f82723

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cms/djangoapps/contentstore/views/course.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,9 +738,23 @@ def format_course_for_view(course):
738738
archived_courses = []
739739

740740
for course in courses_iter:
741+
# BEGIN temp fix for Sounds Write
742+
743+
# TODO: if a user has tons of courses like Sounds Write (571), some pages will time out.
744+
# This is a temporary patch to prevent Sounds-Write requets timing out. The right fix
745+
# is to optimize the DB queries.
746+
747+
748+
# This skipping step can be potentially kept since it's just used for the "prerequisite" course list
749+
# where we do not need to list archived courses.
741750
if course.has_ended() and ignore_archived:
742751
continue
743752

753+
if course.has_ended() and course.location.org == "sounds-write":
754+
continue
755+
756+
# END temp fix for Sounds Write
757+
744758
if isinstance(course, ErrorDescriptor) or (course.id in in_process_action_course_keys):
745759
continue
746760

0 commit comments

Comments
 (0)