Skip to content

Commit c64bb39

Browse files
committed
feat: add curriculum to the results of po reports
1 parent b3a1424 commit c64bb39

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

entity/course_portfolio.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ type StudentOutcomeStatus struct {
200200
type CourseData struct {
201201
Id string `json:"id"`
202202
Code string `json:"code"`
203+
Curriculum string `json:"curriculum"`
203204
Name string `json:"name"`
204205
PassingPercentage float64 `json:"passingPercentage"`
205206
Year int `json:"year"`
@@ -232,6 +233,7 @@ type PoCoursesGorm struct {
232233
CourseId string
233234
Name string
234235
Code string
236+
Curriculum string
235237
Year int
236238
SemesterSequence string
237239
}

repository/course_portfolio.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,7 @@ func cacheOutcomes(gorm *gorm.DB, selector TabeeSelector) {
10831083
course_id,
10841084
course.name,
10851085
course.code,
1086+
course.curriculum,
10861087
semester.year,
10871088
semester.semester_sequence
10881089
FROM

usecase/course_portfolio.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ func (u coursePortfolioUseCase) GetAllProgramOutcomeCourses() ([]entity.PoCourse
678678
posMap[record.ProgramOutcomeId] = append(posMap[record.ProgramOutcomeId], entity.CourseData{
679679
Id: record.CourseId,
680680
Code: record.Code,
681+
Curriculum: record.Curriculum,
681682
Name: record.Name,
682683
PassingPercentage: record.PassingPercentage,
683684
Year: record.Year,

0 commit comments

Comments
 (0)