diff --git a/cmd/scraper.go b/cmd/scraper.go index c33fc67..118192b 100644 --- a/cmd/scraper.go +++ b/cmd/scraper.go @@ -4,7 +4,6 @@ import ( "context" "encoding/json" "errors" - "fmt" "github.com/r3labs/diff/v3" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -146,7 +145,6 @@ func (s *ScraperCommand) runScraper() error { n := ¬ifier.ApiGrade{ Course: grade.Course, Class: s.findClass(grade, classes), - Year: uint32(year), Name: grade.Description, Mean: float32(nmean), } @@ -274,7 +272,7 @@ func (s *ScraperCommand) findClass(grade *scraperGrade, classes []string) string continue } - return fmt.Sprintf("%s-%s", grade.Course, className) + return className } return grade.Course diff --git a/notifier/types.go b/notifier/types.go index 77fb55f..9b52974 100644 --- a/notifier/types.go +++ b/notifier/types.go @@ -3,7 +3,6 @@ package notifier type ApiGrade struct { Course string `json:"course"` Class string `json:"class"` - Year uint32 `json:"year"` Name string `json:"name"` Mean float32 `json:"class_average"` }