Fixed creating new test

This commit is contained in:
Gregory Ballantine committed 2024-05-29 09:47:49 -04:00
1 parent 2299ac0a93
commit 93170d0935
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ func TestGetView(c flamego.Context, t template.Template, data template.Data) {
// find hardware from DB
var test models.Test
models.DB.First(&test, testID)
models.DB.Preload("Hardware").Preload("Benchmarks").First(&test, testID)
data["test"] = test
data["title"] = test.Name