From 9818497db2bf08748d05d3f0e10072cc6766f7a0 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 29 Apr 2014 03:52:38 -0400 Subject: remove extra match attributes from scheduling algos --- lib/scheduling/elimination.rb | 2 +- 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 -- cgit v1.2.3