1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Fixed a couple slow queries

This commit is contained in:
2021-12-11 03:08:43 +00:00
parent 5ef27f19cc
commit 8430949a37
6 changed files with 15 additions and 10 deletions

View File

@@ -16,7 +16,7 @@
<% cache ["#{@tournament.id}_all_brackets", @tournament] do %>
<div id="exportable" >
<%= render :template => 'tournaments/team_scores' %>
<% @tournament.weights.sort_by{|w| w.max}.each do |weight| %>
<% @weights.sort_by{|w| w.max}.each do |weight| %>
<table class='pagebreak'>
<tr>
<% if @tournament.tournament_type == "Pool to bracket" %>