1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-24 17:04:43 +00:00

Fixed another bug in double elimination advancement

This commit is contained in:
2020-01-31 12:09:19 -05:00
parent 5bb76fe134
commit c98d3b2610

View File

@@ -67,9 +67,7 @@ class DoubleEliminationAdvance
end
def update_new_match(match, wrestler_number)
puts "!!!!!!!!!!!!!!!!!!!!!!"
puts "#{match.bout_number} is getting #{@wrestler.name} as wrestler #{wrestler_number}"
if wrestler_number == 2 or match.loser1_name.include? "Loser of"
if wrestler_number == 2 or (match.loser1_name and match.loser1_name.include? "Loser of")
match.w2 = @wrestler.id
match.save
elsif wrestler_number == 1