Tournament table: allow tours with no game.
This commit is contained in:
parent
c82e0f7d73
commit
2de1581f4d
@ -54,11 +54,13 @@ module LORChess
|
|||||||
|
|
||||||
def fill_results
|
def fill_results
|
||||||
@@db_results.each do |tour|
|
@@db_results.each do |tour|
|
||||||
# zero-based round
|
if tour['games']
|
||||||
round = (tour['number'] - 1).div(@@dim - 1)
|
# zero-based round
|
||||||
|
round = (tour['number'] - 1).div(@@dim - 1)
|
||||||
|
|
||||||
tour['games'].each do |game|
|
tour['games'].each do |game|
|
||||||
import game, round
|
import game, round
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user