diff --git a/grades.go b/grades.go index c7dca49..5d8a7b8 100644 --- a/grades.go +++ b/grades.go @@ -48,8 +48,9 @@ func (gg Grades) Print() { // Grades returns a list of the grades of all graded or signed up modules func (s *Session) Grades() (Grades, error) { var grades Grades + client := &http.Client{} - url := "https://lsf.hs-worms.de/qisserver/rds?state=notenspiegelStudent&next=list.vm&nextdir=qispos/notenspiegel/student&createInfos=Y&struct=auswahlBaum&nodeID=auswahlBaum%7Cabschluss%3Aabschl%3D05%2Cstgnr%3D1%7Cstudiengang%3Astg%3D938%2Cpversion%3D2018&expand=0&asi=" + s.ASI + url := "https://lsf.hs-worms.de/qisserver/rds?state=notenspiegelStudent&next=list.vm&nextdir=qispos/notenspiegel/student&createInfos=Y&struct=auswahlBaum&nodeID=auswahlBaum%7Cabschluss%3Aabschl%3D05%2Cstgnr%3D1%7Cstudiengang%3Astg%3DC37%2Cpversion%3D2018&expand=0&asi=" + s.ASI req, err := http.NewRequest("GET", url, nil) if err != nil { return nil, errors.Wrap(err, "could not prepare the request")