1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-03 21:33:48 +00:00

Use websockets on stats page to determine which match to stat.

This commit is contained in:
2026-02-23 17:56:40 -05:00
parent 654cb84827
commit ca4d5ce0db
11 changed files with 211 additions and 25 deletions

View File

@@ -184,6 +184,7 @@ class Mat < ApplicationRecord
def clear_queue!
update!(queue1: nil, queue2: nil, queue3: nil, queue4: nil)
broadcast_current_match
end
def unfinished_matches

View File

@@ -97,6 +97,7 @@ class Tournament < ApplicationRecord
def destroy_all_matches
matches.destroy_all
mats.each(&:clear_queue!)
end
def matches_by_round(round)