mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-03 02:09:15 +02:00
changed module model and fixed empty name in event while fetch
This commit is contained in:
@@ -3,6 +3,7 @@ package events
|
||||
import (
|
||||
"github.com/labstack/echo/v5"
|
||||
"github.com/pocketbase/pocketbase"
|
||||
"htwkalender/model"
|
||||
"htwkalender/service/db"
|
||||
"htwkalender/service/functions"
|
||||
)
|
||||
@@ -28,10 +29,7 @@ func replaceEmptyEntryInStringArray(modules []string, replacement string) {
|
||||
}
|
||||
}
|
||||
|
||||
func replaceEmptyEntry(modules []struct {
|
||||
Name string
|
||||
Course string
|
||||
}, replacement string) {
|
||||
func replaceEmptyEntry(modules model.Events, replacement string) {
|
||||
//replace empty functions with "Sonderveranstaltungen"
|
||||
for i, module := range modules {
|
||||
if functions.OnlyWhitespace(module.Name) {
|
||||
|
Reference in New Issue
Block a user