]> git.sesse.net Git - ultimatescore/commitdiff
Slight trickery to fix 9–11 and 12–14 (how did they ever work).
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 10 Oct 2021 22:43:09 +0000 (00:43 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 10 Oct 2021 22:43:09 +0000 (00:43 +0200)
carousel.js
update_sheets.js

index 28fa7ae5757c840ba3afb7f0be6a2c1f92a5edaf..25872316449b0c8b7c3bc4347880e1aef04283a7 100644 (file)
@@ -539,7 +539,7 @@ function filter_teams(teams, response)
 function filter_teams_by_group(teams, groups, group)
 {
        return teams.filter(function(team) {
-               return groups[group].indexOf(team.shortname) != -1;
+               return groups[group].indexOf(team.shortname) != -1 || groups[group].indexOf(team.mediumname) != -1;
        });
 }
 
index edaed4d4a6dcf9be2f96116e750f467c411465f1..24381358ed52713cca0f129ef5ac424cccede69e 100644 (file)
@@ -394,6 +394,8 @@ function fill_playoff(all_teams, groups, replacements) {
                                        get_all_group_games(all_teams, groups, function(group_games) {
                                                // NOTE: filter_teams_by_group will be delayed by one cycle
                                                // after W P1 etc. becomes determined for the first time.
+                                               // Note that this requires the Groups sheet to pick out
+                                               // the right teams from the group matches in the Results sheet!
                                                let teams_l1 = filter_teams_by_group(all_teams, groups, 'Playoffs 9th–11th');
                                                let teams_l2 = filter_teams_by_group(all_teams, groups, 'Playoffs 12th–14th');
                                                publish_group_rank(teams_l1, group_games, 'Playoffs 9th–11th');