fix:#82 added type to title for unique identification in uuid

This commit is contained in:
masterelmar
2023-12-13 11:43:32 +01:00
parent b7bf1bc409
commit 23b5683387

View File

@@ -84,7 +84,7 @@ func formatEntriesToEvents(entries []model.SportEntry) []model.Event {
end, _ := types.ParseDateTime(eventEnds[j].In(time.UTC))
var event = model.Event{
UUID: uuid.NewSHA1(uuid.NameSpaceDNS, []byte(entry.Title+strconv.FormatInt(int64(i), 10))).String(),
UUID: uuid.NewSHA1(uuid.NameSpaceDNS, []byte(entry.Title+strconv.FormatInt(int64(i), 10)+entry.Details.Type)).String(),
Day: toGermanWeekdayString(entry.Details.DateRange.Start.Weekday()),
Week: strconv.Itoa(23),
Start: start,