Skip to content

Commit

Permalink
fix(parse/exam-schedule): Sanitize strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ditsuke committed May 23, 2023
1 parent ccff970 commit ce03781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amizone/internal/parse/examination_schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ func ExaminationSchedule(body io.Reader) (*models.ExaminationSchedule, error) {
scheduleEntries.Each(func(i int, row *goquery.Selection) {
exam := models.ScheduledExam{
Course: models.CourseRef{
Code: row.Find(fmt.Sprintf(dataCellSelectorTpl, dTitleCode)).Text(),
Name: row.Find(fmt.Sprintf(dataCellSelectorTpl, dTitleName)).Text(),
Code: CleanString(row.Find(fmt.Sprintf(dataCellSelectorTpl, dTitleCode)).Text()),
Name: CleanString(row.Find(fmt.Sprintf(dataCellSelectorTpl, dTitleName)).Text()),
},
Time: func() time.Time {
rawDate := row.Find(fmt.Sprintf(dataCellSelectorTpl, dTitleDate)).Text()
Expand Down

0 comments on commit ce03781

Please sign in to comment.