X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=update_sheets.js;h=5794b6f608dd3e8a29e0b8ff61c6fdbe824a87c9;hb=4d2991a8d05b23222912fb904b436af5f4d740c2;hp=f0a927410e235021bd834132123442f206337dd5;hpb=2589d7daca808d9e22ecaeee0d9b686d67723304;p=ultimatescore diff --git a/update_sheets.js b/update_sheets.js index f0a9274..5794b6f 100644 --- a/update_sheets.js +++ b/update_sheets.js @@ -254,7 +254,7 @@ function names_for_team(team, expansions) { function expand_mediumname_if_single_team(team, expansions) { if (expansions.hasOwnProperty(team)) { - return expansions[team].mediumname; + return expansions[team][1]; } return team; } @@ -311,6 +311,9 @@ function fill_playoff(replacements, teams) { replacements.unshift(["L " + game_name2, team1]); } } else if (game[5]) { + // No score yet, so write the name of the game (e.g. “L-semi 1”) + // where the score would normally be, to mark what this game is called. + // This is useful with the limited space on the tablet. score1 = score2 = ""; updates.push({ "range": cell_score1, "values": [ [ game[4] ] ] }); }