mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-02 17:59:14 +02:00
fix:#82 added type to title for unique identification in uuid
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user