]> git.sesse.net Git - ultimatescore/commitdiff
Deal with the loser RR group from US4.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 19 Feb 2020 21:35:12 +0000 (22:35 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 19 Feb 2020 21:35:12 +0000 (22:35 +0100)
config.js
score.html
update_sheets.js

index 37b6e6fc119bfb7fd23c8a75cb1bb000e603457b..7ce0b6a3f73f5463af04aa3fe72446afc38a079b 100644 (file)
--- a/config.js
+++ b/config.js
@@ -30,6 +30,13 @@ var ultimateconfig = {
                        'point_total_start_row': 8,
                        'ranking_list_start_row': 15,
                        'ranking_list_explain_row': 21
+               },
+               'Group L': {
+                       // Rank, name, points.
+                       'score_sheet_cols': [ 'Results!S', 'Results!T', 'Results!U' ],
+                       'point_total_start_row': null,
+                       'ranking_list_start_row': 33,
+                       'ranking_list_explain_row': 39
                }
        },
        'explain_third_cell': 'Results!S26',
index c55523cb8e4c72f35e0e59072c9fb18fffe0a842..5bbaddf49e7528195e9c7c76c4c75afbf0658459 100644 (file)
@@ -98,6 +98,7 @@
         <a href="javascript:stopcarousel();showgroup('Group A')">show group A</a>
         <a href="javascript:stopcarousel();showgroup('Group B')">show group B</a>
         <a href="javascript:stopcarousel();showgroup('Group C')">show group C</a>
+        <a href="javascript:stopcarousel();showgroup('Group L')">show group L</a>
         <a href="javascript:stopcarousel();showschedule()">show schedule</a>
         <a href="javascript:stopcarousel();showcarousel()">show carousel</a>
         <a href="javascript:stopcarousel();hidetable()">table out</a>
index 3ee6c8f60c766e80c0ff1977bb8586a76b33b129..abaccf8ab60780a65762195f3a51f6be827381d4 100644 (file)
@@ -360,7 +360,9 @@ function fill_playoff(replacements, teams) {
                        "requests": meta_updates
                };
                possibly_update_oauth_key(function() {
-                       post_json('https://sheets.googleapis.com/v4/spreadsheets/' + ultimateconfig['score_sheet_id'] + '/values:batchUpdate?key=' + ultimateconfig['api_key'], json, function(response) {}, current_oauth_access_token);
+                       post_json('https://sheets.googleapis.com/v4/spreadsheets/' + ultimateconfig['score_sheet_id'] + '/values:batchUpdate?key=' + ultimateconfig['api_key'], json, function(response) {
+                               get_group('Group L', function(response_l) { publish_group_rank(response_l, 'Group L'); });
+                       }, current_oauth_access_token);
                        post_json('https://sheets.googleapis.com/v4/spreadsheets/' + ultimateconfig['score_sheet_id'] + ':batchUpdate?key=' + ultimateconfig['api_key'], meta_json, function(response) {}, current_oauth_access_token);
                });
        });