mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[Meta] Add course code to credits and enrollments of students
This commit is contained in:
committed by
Aaro Koivukangas
parent
6d169a3455
commit
172081468a
@@ -55,7 +55,7 @@ export const CustomPopulationContent = ({
|
||||
|
||||
useEffect(() => {
|
||||
setStudentAmountLimit(Math.round(filteredStudents.length ? filteredStudents.length * 0.3 : 0))
|
||||
}, [filteredStudents.length])
|
||||
}, [filteredStudents.length, setStudentAmountLimit])
|
||||
|
||||
const onStudentAmountLimitChange = value => {
|
||||
setStudentAmountLimit(Number.isNaN(Number(value)) ? studentAmountLimit : Number(value))
|
||||
@@ -123,7 +123,7 @@ export const CustomPopulationContent = ({
|
||||
showBachelorAndMaster: false,
|
||||
includePrimaryProgramme: false,
|
||||
|
||||
coursecodes: [],
|
||||
courseIds: [],
|
||||
from: undefined,
|
||||
to: undefined,
|
||||
})
|
||||
|
||||
@@ -78,6 +78,7 @@ export const formatPopulationData = <T extends RequiredFields>(
|
||||
|
||||
return {
|
||||
course_id: credit.course_id,
|
||||
course_code: credit.course_code,
|
||||
date: credit.attainment_date,
|
||||
passed,
|
||||
grade: passed ? credit.grade : 'Hyl.',
|
||||
|
||||
Reference in New Issue
Block a user