mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-09 13:17:46 +02:00
fix:#46 updated fetcher and empty course issue
This commit is contained in:
@@ -336,8 +336,12 @@ func AddRoutes(app *pocketbase.PocketBase) {
|
||||
courses := events.GetAllCourses(app)
|
||||
return c.JSON(200, courses)
|
||||
} else {
|
||||
courses := events.GetAllCoursesForSemester(app, semester)
|
||||
return c.JSON(200, courses)
|
||||
seminarGroups := events.GetAllCoursesForSemester(app, semester)
|
||||
courseStringList := make([]string, 0)
|
||||
for _, seminarGroup := range seminarGroups {
|
||||
courseStringList = append(courseStringList, seminarGroup.Course)
|
||||
}
|
||||
return c.JSON(200, courseStringList)
|
||||
}
|
||||
},
|
||||
Middlewares: []echo.MiddlewareFunc{
|
||||
|
Reference in New Issue
Block a user