]> git.sesse.net Git - ultimatescore/commitdiff
Parametrize where we want playoffs games to be written.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 12 Mar 2020 00:07:31 +0000 (01:07 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 12 Mar 2020 00:07:31 +0000 (01:07 +0100)
config.js
update_sheets.js

index 2b8f314aceef0a1eb7da6f5230743cbaf53c82b1..fb91c0485545900e02956584155172d0dd3b4bee 100644 (file)
--- a/config.js
+++ b/config.js
@@ -82,5 +82,6 @@ var ultimateconfig = {
                [ 3, 4, 5, 6 ],
                [ 8, 9, 10, 11 ],
                [ 13, 14, 15, 16 ],
-       ]
+       ],
+       'playoff_games_start_row_detail_sheet': 38
 };
index 7bc9addfbbd9507b3d825cd85ea180c859d5dab6..f4e01e635d83b4c5ecd75b159a6f9b6057605a8e 100644 (file)
@@ -366,8 +366,9 @@ function fill_playoff(replacements, teams) {
 
                        if (game[2] == 0) {  // Stream field.
                                // Game.
+                               let ss_row = ultimateconfig['playoff_games_start_row_detail_sheet'] + game_num;
                                updates.push({
-                                       "range": "Playoffs!A" + (game_num + 32) + ":J" + (game_num + 32),
+                                       "range": "Playoffs!A" + ss_row + ":J" + ss_row,
                                        "values": [ [ team1, team2, score1, score2, "", "", "", game_day, response['values'][row - 1][1].replace(".",":"), game[6] ] ]
                                });