Skip to content

Commit

Permalink
fix: Update assignment in schedule parser
Browse files Browse the repository at this point in the history
Missed updating this post the refactoring some commits back.
  • Loading branch information
ditsuke committed Jun 6, 2022
1 parent a23a0e4 commit 1e239ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amizone/internal/parse/examination_schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func ExaminationSchedule(body io.Reader) (*models.ExaminationSchedule, error) {
// Iterate through exams rows to parse entries
scheduleEntries.Each(func(i int, row *goquery.Selection) {
exam := models.ScheduledExam{
Course: &models.Course{
Course: &models.CourseRef{
Code: row.Find(fmt.Sprintf(dataCellSelectorTpl, dTitleCode)).Text(),
Name: row.Find(fmt.Sprintf(dataCellSelectorTpl, dTitleName)).Text(),
},
Expand Down

0 comments on commit 1e239ef

Please sign in to comment.