File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
cms/djangoapps/contentstore/views Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -738,9 +738,23 @@ def format_course_for_view(course):
738
738
archived_courses = []
739
739
740
740
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.
741
750
if course .has_ended () and ignore_archived :
742
751
continue
743
752
753
+ if course .has_ended () and course .location .org == "sounds-write" :
754
+ continue
755
+
756
+ # END temp fix for Sounds Write
757
+
744
758
if isinstance (course , ErrorDescriptor ) or (course .id in in_process_action_course_keys ):
745
759
continue
746
760
You can’t perform that action at this time.
0 commit comments