Tournament table: allow tours with no game.
This commit is contained in:
@@ -54,6 +54,7 @@ module LORChess
|
|||||||
|
|
||||||
def fill_results
|
def fill_results
|
||||||
@@db_results.each do |tour|
|
@@db_results.each do |tour|
|
||||||
|
if tour['games']
|
||||||
# zero-based round
|
# zero-based round
|
||||||
round = (tour['number'] - 1).div(@@dim - 1)
|
round = (tour['number'] - 1).div(@@dim - 1)
|
||||||
|
|
||||||
@@ -62,6 +63,7 @@ module LORChess
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def import game, round
|
def import game, round
|
||||||
num_white = @player_numbers[game['white']]
|
num_white = @player_numbers[game['white']]
|
||||||
|
Reference in New Issue
Block a user