Added tests to hardware page

This commit is contained in:
2025-07-14 13:53:50 -04:00
parent bce063c5f4
commit c9d2f7114a
2 changed files with 24 additions and 3 deletions

View File

@ -30,7 +30,7 @@ func HardwareGetView(c flamego.Context, t template.Template, data template.Data)
// find hardware from DB
var hardware models.Hardware
models.DB.First(&hardware, hardwareID)
models.DB.Preload("Tests.Benchmarks").First(&hardware, hardwareID)
data["hardware"] = hardware
data["title"] = hardware.Name