Tournament table: fix the determination of rounds.

This commit is contained in:
vonavi 2014-03-19 22:11:48 +02:00
parent 71d4f13873
commit 43134b3fbd

View File

@ -55,7 +55,7 @@ module LORChess
def fill_results def fill_results
@@db_results.each do |tour| @@db_results.each do |tour|
# zero-based round # zero-based round
round = (tour['number'] - 1).div(@@dim) round = (tour['number'] - 1).div(@@dim - 1)
tour['games'].each do |game| tour['games'].each do |game|
import game, round import game, round