Added tests to hardware page

This commit is contained in:
Gregory Ballantine
2024-05-29 12:33:45 -04:00
parent 06262431da
commit fb76f28643
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