From a8fc91dffecf0c92e1abb51e99fbb158f77c8313 Mon Sep 17 00:00:00 2001 From: Bitcarrot <73979971+bitkarrot@users.noreply.github.com> Date: Tue, 19 Oct 2021 20:55:22 -0700 Subject: [PATCH] move hkd_historical up one dir to /public --- calculate.js | 4 ++-- convert_btcticker.js | 2 +- public/{static => }/hkd_historical | 0 public/sats.html | 2 +- views/sats.hbs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename public/{static => }/hkd_historical (100%) 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 @@