From 5295779dfcc593707435310994b2b1955621f27f Mon Sep 17 00:00:00 2001 From: Yuki Hirai Date: Tue, 26 Dec 2017 17:04:14 +0900 Subject: [PATCH] Update scripteditor.js --- scripteditor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripteditor.js b/scripteditor.js index 4765cd9..c2b3ebf 100644 --- a/scripteditor.js +++ b/scripteditor.js @@ -1,5 +1,6 @@ +var queryString = Math.random(); + function getData() { - var queryString = Math.random(); var ss = SpreadsheetApp.getActiveSpreadsheet(); // @@ -94,7 +95,6 @@ function getRate(currencyId) { } function getWebRate(currencyId) { - //Example Output: // '=IMPORTXML("https://coinmarketcap.com/currencies/zeeyx?3908288283","//span[@id=\'quote_price\']")'; @@ -102,4 +102,4 @@ function getWebRate(currencyId) { var coinScrape2 = '","//span[@id=\'quote_price\']")'; return coinScrape1 + currencyId + '?' + queryString + coinScrape2; -} \ No newline at end of file +}