mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Removed unused files
This commit is contained in:
@@ -1,31 +0,0 @@
|
|||||||
class Bout
|
|
||||||
|
|
||||||
|
|
||||||
def matchesByRound(round, matches)
|
|
||||||
@matches = matches.select {|m| m.round == round}
|
|
||||||
return @matches
|
|
||||||
end
|
|
||||||
|
|
||||||
def giveBout(matches)
|
|
||||||
@matches = matches.sort_by{|x|[x.weight_max]}
|
|
||||||
@matches.each_with_index do |m, i|
|
|
||||||
bout = m.round * 1000 + i
|
|
||||||
m.boutNumber = bout
|
|
||||||
end
|
|
||||||
return @matches
|
|
||||||
end
|
|
||||||
|
|
||||||
def assignBouts(matches)
|
|
||||||
@round = 1
|
|
||||||
until matchesByRound(@round, matches).blank? do
|
|
||||||
@matches = matchesByRound(@round, matches)
|
|
||||||
giveBout(@matches)
|
|
||||||
@round += 1
|
|
||||||
end
|
|
||||||
return matches
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" %>
|
|
||||||
</br>
|
|
||||||
</br>
|
|
||||||
</br>
|
|
||||||
The server is running processes in the background.
|
|
||||||
</br>
|
|
||||||
Please allow up to 10 minutes for all matches to be created.
|
|
||||||
<br>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
mysqldump -h db.codywimer.com -u heroku_jcw -p wrestlingtourney | mysql -h localhost -u root -ppassword wrestlingtourney
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
mysql -u root -ppassword -e 'CREATE DATABASE wrestlingtourney;'
|
|
||||||
Reference in New Issue
Block a user