mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-21 22:24:29 +00:00
Fixed pooladvance and updated views for when tournament ends
This commit is contained in:
@@ -56,11 +56,11 @@ class Pooladvance
|
||||
def updateNewMatch(match)
|
||||
if @wrestler.nextMatchPositionNumber == @wrestler.nextMatchPositionNumber.ceil
|
||||
match.w2 = @wrestler.id
|
||||
match.update
|
||||
match.save
|
||||
end
|
||||
if @wrestler.nextMatchPositionNumber != @wrestler.nextMatchPositionNumber.ceil
|
||||
match.w1 = @wrestler.id
|
||||
match.update
|
||||
match.save
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user