Skip to content

Commit

Permalink
refactor: remove list instantiation for course_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Feb 16, 2024
1 parent 0213c75 commit 7276c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/djangoapps/contentstore/views/course.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7276c8d

Please sign in to comment.