Fixed linter errors
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Gregory Ballantine 2024-02-09 13:59:44 -05:00
parent 1e0cd49cf8
commit 357bb69257

View File

@ -5,13 +5,11 @@ class Hardware < Sequel::Model(:hardware)
one_to_many :results
def bench_results()
br = Hash.new()
def bench_results
br = {}
self.results.each do |r|
unless br.key?(r.benchmark.name)
br[r.benchmark.name.to_s] = []
end
@results.each do |r|
br[r.benchmark.name.to_s] = [] unless br.key?(r.benchmark.name)
br[r.benchmark.name.to_s].push(r.avg_score)
end