Fixed the test edit page
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Gregory Ballantine
2025-07-31 14:06:08 -04:00
parent 57163b10e4
commit ec2bf45a6e
3 changed files with 23 additions and 3 deletions

View File

@@ -7,4 +7,8 @@ class Test < Sequel::Model
many_to_one :hardware
many_to_many :benchmarks
def has_benchmark(benchmark_id)
return benchmarks_dataset.where(Sequel[:benchmarks][:id] => benchmark_id).any?
end
end