From: Steinar H. Gunderson Date: Thu, 12 Mar 2020 00:06:44 +0000 (+0100) Subject: Make it possible to turn off best-thirds code. X-Git-Url: https://git.sesse.net/?p=ultimatescore;a=commitdiff_plain;h=cf56bdbf02776f70c17cb873b4a37f072310b24a Make it possible to turn off best-thirds code. --- diff --git a/config.js b/config.js index ff4f363..2b8f314 100644 --- a/config.js +++ b/config.js @@ -2,6 +2,7 @@ var ultimateconfig = { 'tournament_title': 'Battle for Oak Hill 2020', 'tournament_footer': 'www.plastkast.no | #oakhill', 'exohack': true, + 'best_thirds': true, 'kick_fifth_from_third': true, // Share both sheets with ultimate-nm-2018@solskogen-cubemap.iam.gserviceaccount.com. diff --git a/update_sheets.js b/update_sheets.js index 3a7b0f7..7bc9add 100644 --- a/update_sheets.js +++ b/update_sheets.js @@ -477,6 +477,7 @@ function addsign(x) } function publish_best_thirds() { + if (!ultimateconfig['best_thirds']) return; get_group('Group A', function(response_a) { get_group('Group B', function(response_b) { get_group('Group C', function(response_c) {