diff --git a/calculate.js b/calculate.js index 70483eb..e54000f 100644 --- a/calculate.js +++ b/calculate.js @@ -21,8 +21,8 @@ module.exports = { get10yr: async function() { // console.log("get10yr") try { - // const content = await fs.readFile('./public/static/hkd_historical') - const content = fs.readFileSync('./public/static/hkd_historical', { encoding: 'utf8' }) + // const content = await fs.readFile('./public/hkd_historical') + const content = fs.readFileSync('./public/hkd_historical', { encoding: 'utf8' }) const historical = JSON.parse(content) hist_entries = [] diff --git a/convert_btcticker.js b/convert_btcticker.js index 764c44a..5349534 100644 --- a/convert_btcticker.js +++ b/convert_btcticker.js @@ -76,7 +76,7 @@ function hkdrate() { }) console.log(hkdData) const hkdHistorical = JSON.stringify(hkdData) - fs.writeFileSync("./public/static/hkd_historical", hkdHistorical) + fs.writeFileSync("./public/hkd_historical", hkdHistorical) } diff --git a/public/static/hkd_historical b/public/hkd_historical similarity index 100% rename from public/static/hkd_historical rename to public/hkd_historical diff --git a/public/sats.html b/public/sats.html index 4f99431..9ae4f9c 100644 --- a/public/sats.html +++ b/public/sats.html @@ -165,7 +165,7 @@