mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-17 13:24:36 +00:00
Removed single weight match generation, fixed bracket names, reload weight matches for pool order, and auto delete errrored jobs
This commit is contained in:
@@ -14,6 +14,7 @@ class AdvanceWrestler
|
||||
end
|
||||
|
||||
def advance_raw
|
||||
@tournament.clear_errored_deferred_jobs
|
||||
if @last_match && @last_match.finished?
|
||||
pool_to_bracket_advancement if @tournament.tournament_type == "Pool to bracket"
|
||||
DoubleEliminationAdvance.new(@wrestler, @last_match).bracket_advancement if @tournament.tournament_type.include? "Modified 16 Man Double Elimination" or
|
||||
|
||||
@@ -29,6 +29,7 @@ class PoolOrder
|
||||
|
||||
def setOriginalPoints
|
||||
@wrestlers.each do |w|
|
||||
matches = w.matches.reload
|
||||
w.pool_placement_tiebreaker = nil
|
||||
w.pool_placement = nil
|
||||
w.poolAdvancePoints = w.pool_wins.size
|
||||
|
||||
Reference in New Issue
Block a user