Added tests to hardware page

This commit is contained in:
Gregory Ballantine committed 2024-05-29 12:33:45 -04:00
1 parent 06262431da
commit fb76f28643
2 files changed
+24 -3

No files matched your search

+1 -1
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