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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user