]> git.sesse.net Git - ultimatescore/commitdiff
Make it possible to turn off best-thirds code.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 12 Mar 2020 00:06:44 +0000 (01:06 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 12 Mar 2020 00:06:44 +0000 (01:06 +0100)
config.js
update_sheets.js

index ff4f363fe8ac462de274e2797d72f0767be8a888..2b8f314aceef0a1eb7da6f5230743cbaf53c82b1 100644 (file)
--- 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.
index 3a7b0f7f9611decc700e18dfd4b201017e45bb9d..7bc9addfbbd9507b3d825cd85ea180c859d5dab6 100644 (file)
@@ -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) {