fix:#16 added delete option and fixed uuid generation

This commit is contained in:
Elmar Kresse
2023-10-25 19:51:25 +02:00
parent 403e73cace
commit caa9415422
5 changed files with 107 additions and 4 deletions

View File

@@ -75,6 +75,15 @@ func DeleteAllEventsByCourseAndSemester(app *pocketbase.PocketBase, course strin
}
}
func DeleteAllEvents(app *pocketbase.PocketBase) error {
err := db.DeleteAllEvents(app)
if err != nil {
return err
} else {
return nil
}
}
// UpdateModulesForCourse updates all modules for a course
// Does Updates for ws and ss semester sequentially
// Update runs through the following steps: