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

Fixed bug to correctly calculate championship wins and conso wins

This commit is contained in:
2016-01-25 16:02:33 +00:00
parent c46f895870
commit ada3434e55

View File

@@ -136,11 +136,11 @@ class Wrestler < ActiveRecord::Base
end
def championshipAdvancementWins
finishedBracketMatches.select{|m| m.bracket_position == "Quarter" or m.bracket_position == "Semis"}
matchesWon.select{|m| m.bracket_position == "Quarter" or m.bracket_position == "Semis"}
end
def consoAdvancementWins
finishedBracketMatches.select{|m| m.bracket_position == "Conso Semis"}
matchesWon.select{|m| m.bracket_position == "Conso Semis"}
end
def finishedMatches