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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/scheduling/elimination.rb') 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 -- cgit v1.2.3