Skip to content

Commit

Permalink
[Course statistics] Filter out courses made out of custom attainments (
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Sep 12, 2024
1 parent 83095bb commit 7569cd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/frontend/src/selectors/courses.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ const sortSubstitutions = course => {
const filterCourseSearchResults = (courses, combineSubstitutions) => {
const mergedCourses = {}
courses.forEach(course => {
// Filter out courses made out of custom attainments (#4624)
if (/-\d{9}/.test(course.code)) {
return
}
const groupId = combineSubstitutions ? course.subsId : course.code

if (!(course.max_attainment_date && course.min_attainment_date)) {
Expand Down

0 comments on commit 7569cd9

Please sign in to comment.