1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-16 04:56:58 +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:
2024-12-16 00:02:30 -05:00
parent 5f049793c8
commit a851436c0c
12 changed files with 69 additions and 45 deletions

View File

@@ -17,6 +17,12 @@ class Tournament < ApplicationRecord
Delayed::Job.where(job_owner_id: self.id)
end
def clear_errored_deferred_jobs
Delayed::Job.where(job_owner_id: self.id, last_error: ! nil).each do |job|
job.destroy
end
end
def self.search_date_name(pattern)
if pattern.blank? # blank? covers both nil and empty string
all