diff --git a/app/models/bout.rb b/app/models/bout.rb deleted file mode 100644 index 25ccdd6..0000000 --- a/app/models/bout.rb +++ /dev/null @@ -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 \ No newline at end of file diff --git a/app/views/static_pages/generate_matches.html.erb b/app/views/static_pages/generate_matches.html.erb deleted file mode 100644 index a2789fe..0000000 --- a/app/views/static_pages/generate_matches.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -<%= link_to "Back to #{@tournament.name}", "/tournaments/#{@tournament.id}" %> -
-
-
-The server is running processes in the background. -
-Please allow up to 10 minutes for all matches to be created. -
diff --git a/notes.txt b/notes.txt deleted file mode 100644 index a4b13ba..0000000 --- a/notes.txt +++ /dev/null @@ -1,2 +0,0 @@ -run delayed jobs in dev -rake jobs:work \ No newline at end of file diff --git a/refresh_wrestling_db.sh b/refresh_wrestling_db.sh deleted file mode 100644 index 6201deb..0000000 --- a/refresh_wrestling_db.sh +++ /dev/null @@ -1 +0,0 @@ -mysqldump -h db.codywimer.com -u heroku_jcw -p wrestlingtourney | mysql -h localhost -u root -ppassword wrestlingtourney diff --git a/set_up_dev_db.sh b/set_up_dev_db.sh deleted file mode 100644 index 98abc80..0000000 --- a/set_up_dev_db.sh +++ /dev/null @@ -1 +0,0 @@ -mysql -u root -ppassword -e 'CREATE DATABASE wrestlingtourney;'