From 43134b3fbdcba6897ced7d9a518a2066273a2efa Mon Sep 17 00:00:00 2001 From: vonavi Date: Wed, 19 Mar 2014 22:11:48 +0200 Subject: [PATCH] Tournament table: fix the determination of rounds. --- lib/lorchess/round_robin_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lorchess/round_robin_table.rb b/lib/lorchess/round_robin_table.rb index 50d0e95..b76f228 100644 --- a/lib/lorchess/round_robin_table.rb +++ b/lib/lorchess/round_robin_table.rb @@ -55,7 +55,7 @@ module LORChess def fill_results @@db_results.each do |tour| # zero-based round - round = (tour['number'] - 1).div(@@dim) + round = (tour['number'] - 1).div(@@dim - 1) tour['games'].each do |game| import game, round