Commit 081955bf authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 83144944
......@@ -17,8 +17,8 @@ let com
async function init() {
com = await fs.readFileSync('t.json', 'utf8');
let bad = await fs.readFileSync('bad.txt', 'utf8');
base=parseFloat(bad)
bad=JSON.parse(bad)
base=parseFloat(bad.bad)
com = JSON.parse(com)
......@@ -74,7 +74,7 @@ function run()
if (worth < base) {
base=worth
console.log(arrNew[0].sum,balance,worth)
createfileADV(base)
createfileADV(JSON.stringify({bad:base}))
}
// let start=false
// let arr2=[]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment