Finishing the test/edit route
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending

This commit is contained in:
Gregory Ballantine
2025-10-02 11:28:56 -04:00
parent abc4abe80e
commit 352950467c
4 changed files with 19 additions and 10 deletions

View File

@@ -1,7 +1,6 @@
package models
import (
"fmt"
"strconv"
"gorm.io/gorm"
@@ -32,13 +31,8 @@ func (t *Test) SelectedBenchmarks() []string {
return ids
}
func (t *Test) IsBenchmarkSelected(benchmarkID string) bool {
benchmarkConv, err := strconv.ParseUint(benchmarkID, 10, 0)
if err != nil {
fmt.Println("Error parsing Uint: ", err)
}
benchmarkUint := uint(benchmarkConv)
func (t *Test) IsBenchmarkSelected(benchmarkID uint) bool {
benchmarkUint := uint(benchmarkID)
for _, b := range t.Benchmarks {
if b.ID == benchmarkUint {