mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-04 22:03:49 +00:00
Use match id instead of bout number when looking stuff up on bracket view.
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
<td><%= wrestler.result_by_bout(m.bout_number) %>
|
||||
<td><%= wrestler.result_by_id(m.id) %>
|
||||
</tr>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<% @round = 1 %>
|
||||
<% until @matches.select{|m| m.round == @round}.blank? %>
|
||||
<% if @round <= @pools %>
|
||||
<td><%= w.bout_by_round(@round) %><br><%= w.result_by_bout(w.bout_by_round(@round)) %></td>
|
||||
<td><%= w.bout_by_round(@round) %><br><%= w.result_by_id(w.match_id_by_round(@round)) %></td>
|
||||
<% end %>
|
||||
<% @round = @round + 1 %>
|
||||
<% end %>
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
<td><%= m.bout_number %></td>
|
||||
<td><%= m.bracket_position %></td>
|
||||
<td><%= m.list_w1_stats %><br><%= m.list_w2_stats %></td>
|
||||
<td><%= @wrestler.result_by_bout(m.bout_number) %>
|
||||
<td><%= @wrestler.result_by_id(m.id) %>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user