Updated the test edit page (still need to do the post page)
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
@ -19,3 +21,12 @@ type Test struct {
|
||||
// has many results
|
||||
Results []Result
|
||||
}
|
||||
|
||||
func (t *Test) SelectedBenchmarks() []string {
|
||||
benchmarks := t.Benchmarks
|
||||
ids := make([]string, len(benchmarks))
|
||||
for i, b := range benchmarks {
|
||||
ids[i] = strconv.Itoa(int(b.ID))
|
||||
}
|
||||
return ids
|
||||
}
|
||||
|
Reference in New Issue
Block a user