mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-04 21:31:08 +00:00
Added queues for mats and provided a way for tournament directors to move matches to a mat.
This commit is contained in:
@@ -3,7 +3,11 @@
|
||||
"attributes": <%= @tournament.attributes.to_json %>,
|
||||
"schools": <%= @tournament.schools.map(&:attributes).to_json %>,
|
||||
"weights": <%= @tournament.weights.map(&:attributes).to_json %>,
|
||||
"mats": <%= @tournament.mats.map(&:attributes).to_json %>,
|
||||
"mats": <%= @tournament.mats.map { |mat| mat.attributes.merge(
|
||||
{
|
||||
"queue_bout_numbers": mat.queue_matches.map { |match| match&.bout_number }
|
||||
}
|
||||
) }.to_json %>,
|
||||
"wrestlers": <%= @tournament.wrestlers.map { |wrestler| wrestler.attributes.merge(
|
||||
{
|
||||
"school": wrestler.school&.attributes,
|
||||
@@ -20,4 +24,4 @@
|
||||
}
|
||||
) }.to_json %>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user