From 7276c8d52fbc62881c12cbfc4c0a2599341bc42d Mon Sep 17 00:00:00 2001 From: Maria Grimaldi Date: Fri, 16 Feb 2024 10:12:31 -0400 Subject: [PATCH] refactor: remove list instantiation for course_filter --- cms/djangoapps/contentstore/views/course.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/views/course.py b/cms/djangoapps/contentstore/views/course.py index ef13c77af1b4..af4bf6396929 100644 --- a/cms/djangoapps/contentstore/views/course.py +++ b/cms/djangoapps/contentstore/views/course.py @@ -451,7 +451,7 @@ def course_filter(course_summary): courses_summary = get_courses_by_status(active_only, archived_only, courses_summary) courses_summary = get_courses_by_search_query(search_query, courses_summary) courses_summary = get_courses_order_by(order, courses_summary) - courses_summary = list(filter(course_filter, courses_summary)) + courses_summary = filter(course_filter, courses_summary) in_process_course_actions = get_in_process_course_actions(request) return courses_summary, in_process_course_actions