diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-29 03:52:38 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-29 03:52:38 -0400 |
commit | 9818497db2bf08748d05d3f0e10072cc6766f7a0 (patch) | |
tree | fcb2e77b74404a596654a7b596372d61e7eb1fa2 | |
parent | 4f523f424cb41733c19754c5d4b538053d86ab74 (diff) |
remove extra match attributes from scheduling algos
-rw-r--r-- | lib/scheduling/elimination.rb | 2 | ||||
-rw-r--r-- | lib/scheduling/round_robin.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/scheduling/elimination.rb b/lib/scheduling/elimination.rb index 73aefb4..44ce81e 100644 --- a/lib/scheduling/elimination.rb +++ b/lib/scheduling/elimination.rb @@ -11,7 +11,7 @@ module Scheduling num_teams = (tournament.players.count/tournament.min_players_per_team).floor num_matches = (Float(num_teams - tournament.min_teams_per_match)/(tournament.min_teams_per_match - 1)).ceil + 1 for i in 1..num_matches - tournament_stage.matches.create(status: 0, submitted_peer_evaluations: 0) + tournament_stage.matches.create end match_num = num_matches-1 diff --git a/lib/scheduling/round_robin.rb b/lib/scheduling/round_robin.rb index c0d68d3..7ee617d 100644 --- a/lib/scheduling/round_robin.rb +++ b/lib/scheduling/round_robin.rb @@ -20,7 +20,7 @@ module Scheduling # => Create new matches @matches_per_round.times do - tournament_stage.matches.create(status: 0, submitted_peer_evaluations: 0) + tournament_stage.matches.create end # => seed the first time |