fix:#36 fixed tests, naming, and removed old duplicated code

This commit is contained in:
Elmar Kresse
2024-06-18 18:53:29 +02:00
parent 75752d3fb1
commit 4792b07e8c
8 changed files with 9 additions and 566 deletions

View File

@@ -195,6 +195,8 @@ func parseHTML(webpage string) (*html.Node, error) {
return doc, nil
}
// generateUUIDs generates a UUID for each event based on the event name, course and semester
// the UUID is used to identify the event in the database
func generateUUIDs(events []model.Event) []model.Event {
for i, event := range events {
// generate a hash value from the event name, course and semester