Fixed creating new test
This commit is contained in:
parent
2299ac0a93
commit
93170d0935
@ -30,7 +30,7 @@ func TestGetView(c flamego.Context, t template.Template, data template.Data) {
|
|||||||
|
|
||||||
// find hardware from DB
|
// find hardware from DB
|
||||||
var test models.Test
|
var test models.Test
|
||||||
models.DB.First(&test, testID)
|
models.DB.Preload("Hardware").Preload("Benchmarks").First(&test, testID)
|
||||||
data["test"] = test
|
data["test"] = test
|
||||||
|
|
||||||
data["title"] = test.Name
|
data["title"] = test.Name
|
||||||
|
Loading…
Reference in New Issue
Block a user