X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=quickl3.js;h=aef04f364781e20a7ea58c746a9ba463fa6455e5;hb=04d37d73a81b67fb36a26793d4ab1ed5ce7178a8;hp=b8a49bf763b79b266fbc7a84a6d80bb029b4164b;hpb=86050e4351c734b617780440cf534c4c615c64bc;p=ultimatescore diff --git a/quickl3.js b/quickl3.js index b8a49bf..aef04f3 100644 --- a/quickl3.js +++ b/quickl3.js @@ -28,7 +28,7 @@ function load_l3(sheet, prefix, cb) text = text.replace(/\n/, '
'); let subtext = response.values[i][3]; if (subtext === undefined || subtext === '') { - subtext = 'Trøndisk 2018'; + subtext = ultimateconfig['tournament_title']; } l3s[prefix + number] = { @@ -43,7 +43,7 @@ function load_l3(sheet, prefix, cb) } cb(l3s, sheet); }; - req.open('GET', 'https://sheets.googleapis.com/v4/spreadsheets/1VyLIS2GeohLlIRFs6c8kk6g0ZnBFXXiYNh_JROC-iZM/values/\'' + sheet + '\'!A1:J50?key=AIzaSyAuP9yQn8g0bSay6r_RpGtpFeIbwprH1TU'); + req.open('GET', 'https://sheets.googleapis.com/v4/spreadsheets/' + ultimateconfig['roster_sheet_id'] + '/values/\'' + sheet + '\'!A1:J50?key=' + ultimateconfig['api_key']); req.send(); };