Skip to content

Commit

Permalink
fix: cast filter as sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Feb 6, 2024
1 parent 7adbc9b commit 8f44261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 = filter(course_filter, courses_summary)
courses_summary = list(filter(course_filter, courses_summary))
in_process_course_actions = get_in_process_course_actions(request)
return courses_summary, in_process_course_actions

Expand Down Expand Up @@ -562,7 +562,7 @@ def filter_ccx(course_access):

instructor_courses = UserBasedRole(request.user, CourseInstructorRole.ROLE).courses_with_role()
staff_courses = UserBasedRole(request.user, CourseStaffRole.ROLE).courses_with_role()
all_courses = list(filter(filter_ccx, instructor_courses | staff_courses))
all_courses = filter(filter_ccx, instructor_courses | staff_courses)
courses_list = []
course_keys = {}

Expand Down

0 comments on commit 8f44261

Please sign in to comment.