Fixed a couple of things missing from result displays

This commit is contained in:
Gregory Ballantine 2023-09-03 09:02:31 -04:00
parent b8bec03357
commit f0115847b8
2 changed files with 6 additions and 2 deletions

View File

@ -3,4 +3,8 @@ class Result < Sequel::Model
many_to_one :hardware many_to_one :hardware
many_to_one :benchmark many_to_one :benchmark
def formatted_score()
return self.score
end
end end

View File

@ -15,8 +15,8 @@
<tbody> <tbody>
<% results.each do |r| %> <% results.each do |r| %>
<tr> <tr>
<td><%= r.hardware %></td> <td><%= r.hardware.name %></td>
<td><%= r.benchmark %></td> <td><%= r.benchmark.name %></td>
<td><%= r.formatted_score() %></td> <td><%= r.formatted_score() %></td>
</tr> </tr>
<% end %> <% end %>