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

Corrected query for upcoming matches on bout board

This commit is contained in:
2018-02-01 07:44:58 -05:00
parent df397f55e3
commit ada1cac436

View File

@@ -182,7 +182,7 @@ class TournamentsController < ApplicationController
def up_matches
@matches = @tournament.matches.where(mat_id: nil).order('bout_number ASC').limit(10).includes(:wrestlers)
@matches = @tournament.matches.where("mat_id is NULL and (finished <> ? or finished is NULL)",1).order('bout_number ASC').limit(10).includes(:wrestlers)
@mats = @tournament.mats.includes(:matches)
end