view changes

This commit is contained in:
Simon Martens
2024-11-22 23:47:36 +01:00
parent 3e4cafb5ee
commit 7a6edbf668
11 changed files with 185 additions and 88 deletions

View File

@@ -3,6 +3,7 @@ package xmlprovider
import (
"encoding/xml"
"fmt"
"strconv"
"github.com/google/uuid"
)
@@ -38,11 +39,11 @@ func (p Piece) GetIDs() []string {
uid := uuid.New()
for _, i := range p.IssueRefs {
ret = append(ret, i.Datum+"-"+i.Nr+"-"+uid.String())
ret = append(ret, i.Datum+"-"+strconv.Itoa(i.Nr)+"-"+uid.String())
}
for _, i := range p.AdditionalRef {
ret = append(ret, i.Datum+"-"+i.Nr+"-"+uid.String())
ret = append(ret, i.Datum+"-"+strconv.Itoa(i.Nr)+"-b-"+uid.String())
}
return ret
}