From: Steinar H. Gunderson Date: Sun, 10 Oct 2021 22:29:37 +0000 (+0200) Subject: Fix an issue where the schedule would be partially unfilled. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=e00a1d82b43f059b6315f90d26e046e880ac99ee;p=ultimatescore Fix an issue where the schedule would be partially unfilled. --- diff --git a/nageru/tfk_pause.png b/nageru/tfk_pause.png index 991e569..eba7e50 100644 Binary files a/nageru/tfk_pause.png and b/nageru/tfk_pause.png differ diff --git a/update_sheets.js b/update_sheets.js index ae8df0e..edaed4d 100644 --- a/update_sheets.js +++ b/update_sheets.js @@ -318,7 +318,7 @@ function do_replacements(str, replacements) { return str; } -function fill_playoff(all_teams, groups, replacements, teams) { +function fill_playoff(all_teams, groups, replacements) { let team_expansions = {}; for (const team of all_teams) { team_expansions[team.name] = team_expansions[team.mediumname] = team_expansions[team.shortname] = @@ -430,7 +430,7 @@ function publish_group_ranks() { publish_group_rank(teams_c, games, 'Group C'); let replacements = montecarlo(teams, groups, games, ['Group A', 'Group B', 'Group C']); - fill_playoff(teams, groups, replacements, [teams_a, teams_b, teams_c]); + fill_playoff(teams, groups, replacements); }); }); }); @@ -438,6 +438,7 @@ function publish_group_ranks() { function get_all_playoff_games(teams, groups, group_games, cb) { let replacements = montecarlo(teams, groups, group_games, ['Group A', 'Group B', 'Group C']); + fill_playoff(teams, groups, replacements); // To get the replacements. let games = ultimateconfig['playoff_games']; get_results('Results', function(response) { let playoff_games = [];