]> git.sesse.net Git - ultimatescore/blobdiff - update_sheets.js
Move to Trøndisk again; this time using SASS to switch.
[ultimatescore] / update_sheets.js
index 7cfe0fda6cc320bfdc2532e58a1d7d766aa5ccec..e1df3a0ff5f367c92bb73684551d24e7e3d45a3e 100644 (file)
@@ -104,7 +104,7 @@ function publish_group_rank(group_name)
                        "data": updates 
                };
                possibly_update_oauth_key(function() {
-                       post_json('https://sheets.googleapis.com/v4/spreadsheets/1ygfeR6njBUmLyuLRq7zfYW5slMWBGnj4XxzQQ4WJklU/values:batchUpdate?key=AIzaSyAuP9yQn8g0bSay6r_RpGtpFeIbwprH1TU', 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) {}, current_oauth_access_token);
                });
 
        });