mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-03 18:29:14 +02:00
feat:#57 fixed bug
This commit is contained in:
@@ -28,6 +28,7 @@ type CourseService interface {
|
||||
GetAllCourses() []string
|
||||
GetAllCoursesForSemester(semester string) []model.SeminarGroup
|
||||
GetAllCoursesForSemesterWithEvents(semester string) ([]string, error)
|
||||
FindCourseByCourseName(courseName string) (model.SeminarGroup, error)
|
||||
}
|
||||
|
||||
// PocketBaseCourseService is a struct that implements the CourseService interface
|
||||
@@ -72,3 +73,8 @@ func removeEmptyCourses(courses []string) []string {
|
||||
}
|
||||
return filteredCourses
|
||||
}
|
||||
|
||||
// FindCourseByCourseName returns a course by its name
|
||||
func (s *PocketBaseCourseService) FindCourseByCourseName(courseName string) (model.SeminarGroup, error) {
|
||||
return db.FindCourseByCourseName(s.app, courseName)
|
||||
}
|
||||
|
Reference in New Issue
Block a user