mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-02 17:59:14 +02:00
added comments
This commit is contained in:
@@ -17,8 +17,10 @@ func GetModulesForCourseDistinct(app *pocketbase.PocketBase, course string, seme
|
||||
return modules, err
|
||||
}
|
||||
|
||||
// replaceEmptyEntry replaces an empty entry in a module with a replacement string
|
||||
// If the module is not empty, nothing happens
|
||||
func replaceEmptyEntry(modules model.Events, replacement string) {
|
||||
//replace empty functions with "Sonderveranstaltungen"
|
||||
|
||||
for i, module := range modules {
|
||||
if functions.OnlyWhitespace(module.Name) {
|
||||
modules[i].Name = replacement
|
||||
|
Reference in New Issue
Block a user