mirror of
https://github.com/aljazceru/satshkd-vercel.git
synced 2025-12-17 05:04:24 +01:00
move hkd_historical up one dir to /public
This commit is contained in:
@@ -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 = []
|
||||
|
||||
@@ -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)
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
</p>
|
||||
</div>
|
||||
<script>
|
||||
d3.json('/static/hkd_historical', function(data) {
|
||||
d3.json('/hkd_historical', function(data) {
|
||||
data = MG.convert.date(data, 'date');
|
||||
|
||||
var windowWidth = $(window).width();
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
</p>
|
||||
</div>
|
||||
<script>
|
||||
d3.json('/static/hkd_historical', function(data) {
|
||||
d3.json('/hkd_historical', function(data) {
|
||||
data = MG.convert.date(data, 'date');
|
||||
|
||||
var windowWidth = $(window).width();
|
||||
|
||||
Reference in New Issue
Block a user