From: Steinar H. Gunderson Date: Wed, 19 Feb 2020 21:35:12 +0000 (+0100) Subject: Deal with the loser RR group from US4. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=8d416fce080b6ca9c4c049be47bbae20c70686d4;p=ultimatescore Deal with the loser RR group from US4. --- diff --git a/config.js b/config.js index 37b6e6f..7ce0b6a 100644 --- 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', diff --git a/score.html b/score.html index c55523c..5bbaddf 100644 --- a/score.html +++ b/score.html @@ -98,6 +98,7 @@ show group A show group B show group C + show group L show schedule show carousel table out diff --git a/update_sheets.js b/update_sheets.js index 3ee6c8f..abaccf8 100644 --- a/update_sheets.js +++ b/update_sheets.js @@ -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); }); });